Prepare Context • Rust AI Agent SDK
prepare_context: Prepare context data for handoff based on context policy
prepare_context
Method
</div>
This is a method of the Handoff class in the handoff module.
Prepare context data for handoff based on context policy
Signature
def prepare_context(
&self,
messages: Vec<serde_json::Value>,
source_agent: &str,
chain: &HandoffChain,
extra_context: HashMap<String, serde_json::Value>,
) -> HandoffInputDataParameters
ParamField
Vec<serde_json::Value>No description available.
ParamField
&strNo description available.
ParamField
&HandoffChainNo description available.
ParamField
HashMap<StringNo description available.
ParamField
:Value>No description available.
Returns
ResponseField
HandoffInputDataThe result of the operation.