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
def with_prompt(mut self, prompt: impl Into<String>) -> SelfParameters
ParamField
impl Into<String>No description available.
Returns
ResponseField
SelfThe result of the operation.