Skip to main content

Module agent_http

Module agent_http 

Source

Structs§

ChatIdQuery
ChatIdRequestBody
ChatRequestBody
ChatResponseBody
ClearedBody
There is no /v1/compact: compaction in apollo is turn-local.
ModelRequestBody
StateBody
Everything a client needs to render a status bar.

Constants§

DRAIN_TIMEOUT
How long shutdown waits for in-flight HTTP requests to finish. Bounded, so one genuinely stuck request cannot hold the process open forever.

Functions§

build_state
chat_once
drain_http_server
Wait for the server task to finish draining, up to DRAIN_TIMEOUT.
http_listen_addr
load_or_create_token
Load the bearer token, generating and persisting one on first run.
request_shutdown
Request shutdown (also used by tests).
spawn_http_server
Start the HTTP server.
token_path
Where the shared bearer token lives.
wait_for_shutdown
Resolves once a shutdown has been requested over HTTP.