Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /agno-agi_agno /cookbook /91_tools /fal_tools.py
| """ | |
| Fal Tools | |
| ============================= | |
| Demonstrates fal tools. | |
| """ | |
| from agno.agent import Agent | |
| from agno.models.openai import OpenAIChat | |
| from agno.tools.fal import FalTools | |
| # --------------------------------------------------------------------------- | |
| # Create Agent | |
| # --------------------------------------------------------------------------- | |
| fal_agent = Agent( | |
| name="Fal Video Generator Agent", | |
| model=OpenAIChat(id="gpt-5.6-luna"), | |
| tools=[ | |
| FalTools( | |
| model="fal-ai/hunyuan-video", | |
| enable_generate_media=True, | |
| ) | |
| ], | |
| description="You are an AI agent that can generate videos using the Fal API.", | |
| instructions=[ | |
| "When the user asks you to create a video, use the `generate_media` tool to create the video.", | |
| "Return the URL as raw to the user.", | |
| "Don't convert video URL to markdown or anything else.", | |
| ], | |
| markdown=True, | |
| ) | |
| # --------------------------------------------------------------------------- | |
| # Run Agent | |
| # --------------------------------------------------------------------------- | |
| if __name__ == "__main__": | |
| fal_agent.print_response("Generate video of balloon in the ocean") | |
Xet Storage Details
- Size:
- 1.19 kB
- Xet hash:
- 9de513533cec339cbfdc7463bdb72b4d4ebc7130930cdfe9f7880ef2fbfdbd56
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.