MCPcopy Create free account
hub / github.com/AI45Lab/Code / with_context

Method with_context

core/src/ahp/executor.rs:188–194  ·  view source on GitHub ↗

Create with specific agent ID and depth

(
        transport: Transport,
        agent_id: String,
        depth: u32,
    )

Source from the content-addressed store, hash-verified

186
187 /// Create with specific agent ID and depth
188 pub async fn with_context(
189 transport: Transport,
190 agent_id: String,
191 depth: u32,
192 ) -> Result<Self, a3s_ahp::AhpError> {
193 Self::with_context_and_config(transport, agent_id, depth, 10_000).await
194 }
195
196 /// Create with specific agent ID, depth, and custom idle threshold
197 pub async fn with_context_and_config(

Callers 15

save_to_dirMethod · 0.80
build_reqwest_clientFunction · 0.80
load_code_configFunction · 0.80
newMethod · 0.80
saveMethod · 0.80
loadMethod · 0.80
deleteMethod · 0.80
listMethod · 0.80
save_artifactsMethod · 0.80
load_artifactsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected