Praison AI
Enterprise
Agents
Bot
Use Cases
University
Docs
Response caching and execution limits
Run
from praisonai import Agent, CachingConfig, ExecutionConfig faq_agent = Agent( name='CachedFAQ', instructions='Answer in one concise sentence.', caching=CachingConfig(enabled=True, prompt_caching=True), execution=ExecutionConfig(max_iter=3, max_rpm=30, max_budget=0.10, context_compaction=True), output='silent', ) print(faq_agent.start('Why does response caching save money on repeated FAQ questions?'))
Press Run. The result appears here.
Esc
Search in
All
Docs
University