MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / with_agent

Method with_agent

crates/opencode-tool/src/tool.rs:345–348  ·  view source on GitHub ↗
(mut self, agent: String)

Source from the content-addressed store, hash-verified

343 }
344
345 pub fn with_agent(mut self, agent: String) -> Self {
346 self.agent = agent;
347 self
348 }
349
350 pub fn with_abort(mut self, abort: CancellationToken) -> Self {
351 self.abort = abort;

Callers 4

handle_debug_commandFunction · 0.80
loop_innerMethod · 0.80
execute_toolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected