Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /agno-agi_agno /cookbook /90_models /neosantara /basic.py
| """ | |
| Neosantara Basic | |
| ================ | |
| Cookbook example for `neosantara/basic.py`. | |
| """ | |
| import asyncio | |
| from agno.agent import Agent | |
| from agno.models.neosantara import Neosantara | |
| # --------------------------------------------------------------------------- | |
| # Create Agent | |
| # --------------------------------------------------------------------------- | |
| agent = Agent( | |
| model=Neosantara(id="grok-4.1-fast-non-reasoning"), | |
| markdown=True, | |
| ) | |
| # Print the response in the terminal | |
| # --------------------------------------------------------------------------- | |
| # Run Agent | |
| # --------------------------------------------------------------------------- | |
| if __name__ == "__main__": | |
| # --- Sync --- | |
| agent.print_response("Share a 2 sentence horror story") | |
| # --- Sync + Streaming --- | |
| agent.print_response("Share a 2 sentence horror story", stream=True) | |
| # --- Async --- | |
| asyncio.run(agent.aprint_response("Share a 2 sentence horror story")) | |
| # --- Async + Streaming --- | |
| asyncio.run(agent.aprint_response("Share a 2 sentence horror story", stream=True)) | |
Xet Storage Details
- Size:
- 1.08 kB
- Xet hash:
- 9a742779b6423336733aaec24150e0d22ff6e2a6a7861ee8177cd950b2000b37
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.