With Prompt Caching • Rust AI Agent SDK

with_prompt_caching: Enable prompt caching

with_prompt_caching

Method

</div>

This is a method of the CachingConfig class in the config module.

Enable prompt caching

Signature

python
def with_prompt_caching(mut self) -> Self

Returns

ResponseField Self

The result of the operation.


Related Documentation