With Prompt • Rust AI Agent SDK

with_prompt: Set the prompt template

with_prompt

Method

</div>

This is a method of the LLMGuardrail class in the extras module.

Set the prompt template

Signature

python
def with_prompt(mut self, prompt: impl Into<String>) -> Self

Parameters

ParamField impl Into&lt;String&gt;

No description available.

Returns

ResponseField Self

The result of the operation.


Related Documentation