With Json • Rust AI Agent SDK

with_json: Set JSON output

with_json

Method

</div>

This is a method of the TaskOutput class in the task module.

Set JSON output

Signature

python
def with_json(mut self, json: serde_json::Value) -> Self

Parameters

ParamField serde_json::Value

No description available.

Returns

ResponseField Self

The result of the operation.