main (examples/headless/main.c)¶
Overview · 21 steps, 7 lanes
All 21 steps
| # | caller | callee | what it does | requirements | frames | call site |
|---|---|---|---|---|---|---|
| 1 | main | entropic_create | Create a new engine instance. | REQ-ABI-001 REQ-API-002 REQ-API-003 | if (line 189) | examples/headless/main.c:189 |
| 2 | entropic_create | init | Initialize the logging subsystem. | — | — | src/facade/entropic.cpp:266 |
| 3 | entropic_create | entropic_inference_log_silence | Silence all llama/ggml log output. | — | — | src/facade/entropic.cpp:267 |
| 4 | main | entropic_configure_dir | Configure engine using layered config resolution. | if (line 193) | examples/headless/main.c:193 | |
| 5 | entropic_configure_dir | c_api_try | Run a C-API entry-point body inside an exception barrier. | REQ-ABI-002 | — | src/facade/entropic.cpp:2275 |
| 6 | entropic_configure_dir | do_configure_dir | entropic_configure_dir body — wrapped by c_api_try . | REQ-ABI-002 REQ-API-004 REQ-CFG-001 | — | src/facade/entropic.cpp:2276 |
| 7 | main | entropic_last_error | Get the last error message for a handle. | REQ-ABI-001 REQ-API-003 REQ-API-007 | if (line 193) | examples/headless/main.c:195 |
| 8 | main | entropic_destroy | Destroy an engine instance and free all resources. | REQ-ABI-001 REQ-API-002 REQ-API-003 | if (line 193) | examples/headless/main.c:196 |
| 9 | entropic_destroy | stop | Stop the accept loop and close the socket. | REQ-BRIDGE-001 | if (line 2300) | src/facade/entropic.cpp:2301 |
| 10 | entropic_destroy | entropic_inference_log_silence | Silence all llama/ggml log output. | — | — | src/facade/entropic.cpp:2305 |
| 11 | entropic_destroy | destroy_orchestrator_interface | Free a context returned by build_orchestrator_interface() . | — | — | src/facade/entropic.cpp:2310 |
| 12 | entropic_destroy | shutdown | Shutdown all servers (in-process + external). | REQ-MCP-006 REQ-MCP-025 | loop (line 2319), if (line 2320) | src/facade/entropic.cpp:2320 |
| 13 | entropic_destroy | unregister_handle_log | gh#59 (v2.3.1): release a handle's session.log file sink. | REQ-TYPE-001 | — | src/facade/entropic.cpp:2329 |
| 14 | main | run_scenarios | Run the scripted validation sequence. | — | — | examples/headless/main.c:200 |
| 15 | run_scenarios | run_step | Run a single scripted prompt and validate the response. | — | — | examples/headless/main.c:146 |
| 16 | run_scenarios | run_step | Run a single scripted prompt and validate the response. | — | — | examples/headless/main.c:150 |
| 17 | run_scenarios | check_context_count | Validate that context_count returns the expected value. | — | — | examples/headless/main.c:154 |
| 18 | run_scenarios | entropic_context_clear | Clear conversation history, starting a new session. | REQ-ABI-001 REQ-API-005 REQ-LOOP-009 | — | examples/headless/main.c:156 |
| 19 | run_scenarios | entropic_last_error | Get the last error message for a handle. | REQ-ABI-001 REQ-API-003 REQ-API-007 | if (line 157) | examples/headless/main.c:159 |
| 20 | run_scenarios | check_context_count | Validate that context_count returns the expected value. | — | — | examples/headless/main.c:165 |
| 21 | main | entropic_destroy | Destroy an engine instance and free all resources. | REQ-ABI-001 REQ-API-002 REQ-API-003 | — | examples/headless/main.c:201 |
Functions¶
17 functions
check_context_countexamples/headless/main.cmainexamples/headless/main.crun_scenariosexamples/headless/main.crun_stepexamples/headless/main.cc_api_trysrc/facade/entropic.cppdo_configure_dirsrc/facade/entropic.cppentropic_configure_dirsrc/facade/entropic.cppentropic_context_clearsrc/facade/entropic.cppentropic_createsrc/facade/entropic.cppentropic_destroysrc/facade/entropic.cppentropic_last_errorsrc/facade/entropic.cppstopsrc/facade/external_bridge.cppentropic_inference_log_silencesrc/inference/inference_c_api.cppdestroy_orchestrator_interfacesrc/inference/interface_factory.cppshutdownsrc/mcp/server_manager.cppinitsrc/types/logging.cppunregister_handle_logsrc/types/logging.cpp
This diagram as Mermaid · PlantUML · Graphviz DOT
Quick views¶
17 functions, each with its quick view
- check_context_count
Validate that context_count returns the expected value.
Map
Show it on the map, in its block's wedge.
Block
examples/headless is the block holding
examples/headless/main.c.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- main
Headless example entry point.
Map
Show it on the map, in its block's wedge.
Block
examples/headless is the block holding
examples/headless/main.c.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- run_scenarios
Run the scripted validation sequence.
Map
Show it on the map, in its block's wedge.
Block
examples/headless is the block holding
examples/headless/main.c.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- run_step
Run a single scripted prompt and validate the response.
Map
Show it on the map, in its block's wedge.
Block
examples/headless is the block holding
examples/headless/main.c.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- c_api_try
Run a C-API entry-point body inside an exception barrier.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- do_configure_dir
entropic_configure_dir body — wrapped by c_api_try .
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_configure_dir
Configure using layered resolution (project dir).
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_context_clear
Clear conversation history.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_create
Create a new engine instance.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_destroy
Destroy an engine instance.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_last_error
Read the per-handle last_error under api_mutex.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/entropic.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- stop
Stop the accept loop and close the socket.
Map
Show it on the map, in its block's wedge.
Block
src/facade is the block holding
src/facade/external_bridge.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- entropic_inference_log_silence
Silence all llama/ggml output.
Map
Show it on the map, in its block's wedge.
Block
src/inference is the block holding
src/inference/inference_c_api.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- destroy_orchestrator_interface
Free a context returned by build_orchestrator_interface() .
Map
Show it on the map, in its block's wedge.
Block
src/inference is the block holding
src/inference/interface_factory.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
Reqs
No requirement names this function as an implementer.
- shutdown
Shutdown all servers (in-process + external).
Map
Show it on the map, in its block's wedge.
Block
src/mcp is the block holding
src/mcp/server_manager.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
- init
Initialize the logging subsystem.
Map
Show it on the map, in its block's wedge.
Block
src/types is the block holding
src/types/logging.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs
No requirement names this function as an implementer.
- unregister_handle_log
gh#59 (v2.3.1): release a handle's session.log file sink.
Map
Show it on the map, in its block's wedge.
Block
src/types is the block holding
src/types/logging.cpp.Flow
Replay
No recorded run reaches this function.
Source
Its page: signature, body, callers and callees. Its activity diagram.
Tests
No test calls this function directly.
Reqs