pub struct AntigravityHandler { /* private fields */ }Expand description
Starts and resumes Antigravity CLI streams for AI6 Agent Runs.
Trait Implementations§
Source§impl AgentHandler for AntigravityHandler
impl AgentHandler for AntigravityHandler
Source§fn assistant_network(&self) -> Result<Option<String>, ProviderError>
fn assistant_network(&self) -> Result<Option<String>, ProviderError>
An assistant on this handler gets reading and its MCP servers only: any network but nothing is refused at start.
Source§fn session_commands(&self) -> Result<SessionCommands, ProviderError>
fn session_commands(&self) -> Result<SessionCommands, ProviderError>
agy runs /compact as a turn in the live conversation. It refuses /clear in this mode, so
a clear is a new agy on a new conversation of the same Run.
Source§fn stdio(&self) -> Result<HarnessStdio, ProviderError>
fn stdio(&self) -> Result<HarnessStdio, ProviderError>
agy with --input-format stream-json reads JSON lines from standard input.
Source§fn loadout_support(&self) -> Result<LoadoutSupport, ProviderError>
fn loadout_support(&self) -> Result<LoadoutSupport, ProviderError>
agy applies none of a loadout: only URL servers are measured (its mcp_config.json), the only
sandbox it has (--sandbox) is not, and no rule denies one of a server’s tools by anything but
mcp(<server>/<tool>), which has not been tried for a stdio server.
Source§fn start_options(
&self,
environment: BTreeMap<String, String>,
) -> Result<StartOptions, ProviderError>
fn start_options( &self, environment: BTreeMap<String, String>, ) -> Result<StartOptions, ProviderError>
Every part is unknown, each with the same reason: agy acp is the one command that might
describe what a Run can start with, and what it answers before a session has not been
measured, so nothing is said and nothing is declared not supported.
Source§fn usage_support(&self) -> Result<UsageSupport, ProviderError>
fn usage_support(&self) -> Result<UsageSupport, ProviderError>
agy reports the account’s quota as figures it serves itself, with no turn. A turn’s own events carry the run’s tokens.
Source§fn usage(
&self,
environment: BTreeMap<String, String>,
) -> Result<UsageReport, ProviderError>
fn usage( &self, environment: BTreeMap<String, String>, ) -> Result<UsageReport, ProviderError>
The quota of the account behind environment: from the agy of a running Run under the
same home when it serves it, else from a private agy acp with an empty run, started
under that home and ended after the read. No model turn is spent. A signed-out agy, or one
that serves no quota within usage_wait_ms, is an error.
Source§fn run_record(
&self,
query: RunRecordQuery,
) -> Result<Option<RunRecordFile>, ProviderError>
fn run_record( &self, query: RunRecordQuery, ) -> Result<Option<RunRecordFile>, ProviderError>
agy keeps each conversation’s transcript under its home directory.
Source§fn weakenings(&self) -> Result<Vec<String>, ProviderError>
fn weakenings(&self) -> Result<Vec<String>, ProviderError>
Each rule of allowed_tools no default list holds. A rule the settings deny as well allows
nothing, so it is not one. A rule for a command is one however the Agent is configured,
since any Agent can come to work at desk.
Source§fn program(&self) -> Result<Option<String>, ProviderError>
fn program(&self) -> Result<Option<String>, ProviderError>
PATH or a
path, so a Station can say a harness cannot be found before it asks a terminal to start
it. The default: None, and the Station does not look.Source§fn start(
&self,
request: AgentStart,
terminal: Object<dyn AgentTerminal>,
) -> Result<Object<dyn AgentSession>, ProviderError>
fn start( &self, request: AgentStart, terminal: Object<dyn AgentTerminal>, ) -> Result<Object<dyn AgentSession>, ProviderError>
Source§fn resume(
&self,
request: AgentResume,
terminal: Object<dyn AgentTerminal>,
) -> Result<Object<dyn AgentSession>, ProviderError>
fn resume( &self, request: AgentResume, terminal: Object<dyn AgentTerminal>, ) -> Result<Object<dyn AgentSession>, ProviderError>
Source§fn assistant_scripts(
&self,
environment: BTreeMap<String, String>,
) -> Result<Option<String>, ProviderError>
fn assistant_scripts( &self, environment: BTreeMap<String, String>, ) -> Result<Option<String>, ProviderError>
environment (as the Station would give it): None when it
can, else why not, in a sentence. The default: it cannot.Source§fn assistant_skills(&self) -> Result<Option<String>, ProviderError>
fn assistant_skills(&self) -> Result<Option<String>, ProviderError>
AssistantMode::skills and no
other skill: None when it can, else why not, in a sentence; a Station installs no
skill for a handler that cannot. The default: it cannot.Source§fn clearance_refusal(
&self,
clearance: String,
) -> Result<Option<String>, ProviderError>
fn clearance_refusal( &self, clearance: String, ) -> Result<Option<String>, ProviderError>
clearance, in a
sentence; None when it holds such a Run to what the clearance promises. A route of
an Agent that would be refused is passed over. The default: it can hold any.Source§fn read_only_refusal(&self) -> Result<Option<String>, ProviderError>
fn read_only_refusal(&self) -> Result<Option<String>, ProviderError>
READ_CLEARANCE and then
give it the Mission’s tools on a resume of the same Run, in a sentence; None when it
can. The default: it cannot say it can, so a Mission whose plan is reviewed does not start
on it.Source§fn image_input(&self) -> Result<Option<String>, ProviderError>
fn image_input(&self) -> Result<Option<String>, ProviderError>
None when it reads a message in
the content form, and gives its images to the model with the text. The
default: it cannot.