Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /agno-agi_agno /cookbook /91_tools /sleep_tools.py
| """ | |
| Sleep Tools | |
| ============================= | |
| Demonstrates sleep tools. | |
| """ | |
| from agno.agent import Agent | |
| from agno.tools.sleep import SleepTools | |
| # --------------------------------------------------------------------------- | |
| # Create Agent | |
| # --------------------------------------------------------------------------- | |
| # Example 1: Enable specific sleep functions | |
| agent = Agent(tools=[SleepTools(enable_sleep=True)], name="Sleep Agent") | |
| # Example 2: Enable all sleep functions | |
| agent_all = Agent(tools=[SleepTools(all=True)], name="Full Sleep Agent") | |
| # Test the agents | |
| # --------------------------------------------------------------------------- | |
| # Run Agent | |
| # --------------------------------------------------------------------------- | |
| if __name__ == "__main__": | |
| agent.print_response("Sleep for 2 seconds") | |
| agent_all.print_response("Sleep for 5 seconds") | |
Xet Storage Details
- Size:
- 868 Bytes
- Xet hash:
- f615695864bf9772a5c1f7adc0d0082032c656bbc37911bbe8da8525400b4743
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.