main (examples/headless/main.c)

Overview · 21 steps, 7 lanes

  1. steps 1–3 · examples/headless/main.c, src/facade/entropic.cpp, src/types/logging.cpp +1
  2. steps 4–6 · examples/headless/main.c, src/facade/entropic.cpp
  3. step 7 · examples/headless/main.c, src/facade/entropic.cpp
  4. step 21 · examples/headless/main.c, src/facade/entropic.cpp
  5. steps 14–20 · examples/headless/main.c, src/facade/entropic.cpp
  6. step 21 · examples/headless/main.c, src/facade/entropic.cpp
program launcherprogram launcherprogram launcherprogram launcherprogram launcherexamples/headless/main.cexamples/headless/main.cexamples/headless/main.cexamples/headless/main.cexamples/headless/main.csrc/facade/entropic.cppsrc/facade/entropic.cppsrc/facade/entropic.cppsrc/facade/entropic.cppsrc/facade/entropic.cppsrc/types/logging.cppsrc/types/logging.cppsrc/types/logging.cppsrc/types/logging.cppsrc/types/logging.cppsrc/inference/inference_c_api.cppsrc/inference/inference_c_api.cppsrc/inference/inference_c_api.cppsrc/inference/inference_c_api.cppsrc/inference/inference_c_api.cppsrc/facade/external_bridge.cppsrc/facade/external_bridge.cppsrc/facade/external_bridge.cppsrc/facade/external_bridge.cppsrc/facade/external_bridge.cppsrc/inference/interface_factory.cppsrc/inference/interface_factory.cppsrc/inference/interface_factory.cppsrc/inference/interface_factory.cppsrc/inference/interface_factory.cppsrc/mcp/server_manager.cppsrc/mcp/server_manager.cppsrc/mcp/server_manager.cppsrc/mcp/server_manager.cppsrc/mcp/server_manager.cppopt (line 189)optopt (line 193)optopt (line 2300)optloop (line 2319)loopopt (line 2320)optopt (line 157)optmain1. main → entropic_create1entropic_create2. entropic_create → init2init3. entropic_create → entropic_inference_log_silence3entropic_inference_log_silence4. main → entropic_configure_dir4entropic_configure_dir5–6. entropic_configure_dir → c_api_try5c_api_try +1 more7. main → entropic_last_error7entropic_last_error8. main → entropic_destroy8entropic_destroy9. entropic_destroy → stop9stop10. entropic_destroy → entropic_inference_log_silence10entropic_inference_log_silence11. entropic_destroy → destroy_orchestrator_interface11destroy_orchestrator_interface12. entropic_destroy → shutdown12shutdown13. entropic_destroy → unregister_handle_log13unregister_handle_log14–17. main → run_scenarios14run_scenarios +3 more18. run_scenarios → entropic_context_clear18entropic_context_clear19. run_scenarios → entropic_last_error19entropic_last_error20. run_scenarios → check_context_count20check_context_count21. main → entropic_destroy21entropic_destroy
All 21 steps
#callercalleewhat it doesrequirementsframescall site
1mainentropic_createCreate a new engine instance.REQ-ABI-001 REQ-API-002 REQ-API-003if (line 189)examples/headless/main.c:189
2entropic_createinitInitialize the logging subsystem.——src/facade/entropic.cpp:266
3entropic_createentropic_inference_log_silenceSilence all llama/ggml log output.——src/facade/entropic.cpp:267
4mainentropic_configure_dirConfigure engine using layered config resolution.
5 requirementsREQ-ABI-001 REQ-ABI-002 REQ-API-004 REQ-API-005 REQ-CFG-001
if (line 193)examples/headless/main.c:193
5entropic_configure_dirc_api_tryRun a C-API entry-point body inside an exception barrier.REQ-ABI-002—src/facade/entropic.cpp:2275
6entropic_configure_dirdo_configure_direntropic_configure_dir body — wrapped by c_api_try .REQ-ABI-002 REQ-API-004 REQ-CFG-001—src/facade/entropic.cpp:2276
7mainentropic_last_errorGet the last error message for a handle.REQ-ABI-001 REQ-API-003 REQ-API-007if (line 193)examples/headless/main.c:195
8mainentropic_destroyDestroy an engine instance and free all resources.REQ-ABI-001 REQ-API-002 REQ-API-003if (line 193)examples/headless/main.c:196
9entropic_destroystopStop the accept loop and close the socket.REQ-BRIDGE-001if (line 2300)src/facade/entropic.cpp:2301
10entropic_destroyentropic_inference_log_silenceSilence all llama/ggml log output.——src/facade/entropic.cpp:2305
11entropic_destroydestroy_orchestrator_interfaceFree a context returned by build_orchestrator_interface() .——src/facade/entropic.cpp:2310
12entropic_destroyshutdownShutdown all servers (in-process + external).REQ-MCP-006 REQ-MCP-025loop (line 2319), if (line 2320)src/facade/entropic.cpp:2320
13entropic_destroyunregister_handle_loggh#59 (v2.3.1): release a handle's session.log file sink.REQ-TYPE-001—src/facade/entropic.cpp:2329
14mainrun_scenariosRun the scripted validation sequence.——examples/headless/main.c:200
15run_scenariosrun_stepRun a single scripted prompt and validate the response.——examples/headless/main.c:146
16run_scenariosrun_stepRun a single scripted prompt and validate the response.——examples/headless/main.c:150
17run_scenarioscheck_context_countValidate that context_count returns the expected value.——examples/headless/main.c:154
18run_scenariosentropic_context_clearClear conversation history, starting a new session.REQ-ABI-001 REQ-API-005 REQ-LOOP-009—examples/headless/main.c:156
19run_scenariosentropic_last_errorGet the last error message for a handle.REQ-ABI-001 REQ-API-003 REQ-API-007if (line 157)examples/headless/main.c:159
20run_scenarioscheck_context_countValidate that context_count returns the expected value.——examples/headless/main.c:165
21mainentropic_destroyDestroy an engine instance and free all resources.REQ-ABI-001 REQ-API-002 REQ-API-003—examples/headless/main.c:201

Functions

17 functions

This diagram as Mermaid · PlantUML · Graphviz DOT

Quick views

17 functions, each with its quick view