when • Rust AI Agent SDK

when: Add a route for a value.

when

Method

</div>

This is a method of the DictCondition class in the conditions module.

Add a route for a value.

Signature

python
def when(mut self, value: impl Into<String>, targets: Vec<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

ParamField Vec&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.