pub trait BaseContext:
Sized
+ StateFeatures
+ KeysFeatures
+ StoreFeatures
+ CacheFeatures
+ HttpFeatures
+ CanisterCaller {
// Required method
fn remote_tool_call(
&self,
endpoint: &str,
args: ToolInput<Json>,
) -> impl Future<Output = Result<ToolOutput<Json>, BoxError>> + Send;
}Expand description
Core execution environment available to both agents and tools.
BaseContext groups state, cryptographic, storage, caching, HTTP, and ICP
canister capabilities behind a single trait bound.
Required Methods§
Sourcefn remote_tool_call(
&self,
endpoint: &str,
args: ToolInput<Json>,
) -> impl Future<Output = Result<ToolOutput<Json>, BoxError>> + Send
fn remote_tool_call( &self, endpoint: &str, args: ToolInput<Json>, ) -> impl Future<Output = Result<ToolOutput<Json>, BoxError>> + Send
Executes a remote tool call via HTTP RPC.
§Arguments
endpoint- Remote endpoint URLargs- Tool input arguments,ToolInput.
§Returns
ToolOutput containing the final result.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".