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

python
def prepare_context(
        &self,
        messages: Vec<serde_json::Value>,
        source_agent: &str,
        chain: &HandoffChain,
        extra_context: HashMap<String, serde_json::Value>,
    ) -> HandoffInputData

Parameters

ParamField Vec&lt;serde_json::Value&gt;

No description available.

ParamField &str

No description available.

ParamField &HandoffChain

No description available.

ParamField HashMap&lt;String

No description available.

ParamField :Value&gt;

No description available.

Returns

ResponseField HandoffInputData

The result of the operation.


Related Documentation