Expand description
Handing the terminal over to the agent.
Re-exports§
pub use crate::agents::via_gateway::shell_quote;
Structs§
- Prepared
- A gateway session ready to start.
Functions§
- exec_
agent - Replace this process with the agent, so the terminal, signals and exit code are the agent’s. Returns only by exiting: 127 when the executable cannot be started.
- gateway_
setting_ env - The environment variable that gives the gateway setting
keyof the user config, for when the file cannot be written. - gateway_
settings_ hint - Where the gateway’s settings are made, for somebody whose gateway is not ready or who wants another one.
- gateway_
summary - What
visdom initset up for the gateway, and where each setting comes from. - key_
helper_ command - The command a launched agent runs to get its gateway key: this
visdom, asked for the key of one console and project. - key_
http_ client - The HTTP client for getting a key: the agent does not start without it, so it may take longer than a check.
- launch_
error_ message - What to tell the user when the agent’s executable cannot be started.
- no_
model - Why there is no model alias for
agentto ask the gateway for, and what to set: without one the agent asks for its own default, which a project’s allow-list of aliases does not have. - prepare_
gateway - Everything the agent needs to run through the gateway: the developer’s key (the kept one, or a new one), a model alias and the ids that attribute the session. The second value holds what the developer should know (no model alias to ask for).
- usable_
model - Whether
modelis one the agent can ask the gateway for: an alias the key may call.Errsays what is wrong and what to set — no alias at all (no_model), or one (set atsource) that the project does not have.