Buckets:
| import asyncio | |
| from mcp.types import PromptMessage | |
| from mcp_agent.core.fastagent import FastAgent | |
| # Create the application | |
| fast = FastAgent("mcp server tests") | |
| humans="""a man and woman are standing together against a backdrop, the backdrop is divided equally in half down the middle, left side is red, right side is gold, the woman is wearing a t-shirt with a yoda motif, she has a long skirt with birds on it, the man is wearing a three piece purple suit, he has spiky blue hair""" | |
| # Define the agent | |
| # @fast.agent(name="anon",instruction="You are a helpful AI Agent",servers=["anon_hf"]) | |
| async def main(): | |
| # use the --model command line switch or agent arguments to change model | |
| async with fast.run() as agent: | |
| await agent.interactive() | |
| prompt: PromptMessage = await agent.DVe0UTvm4.get_prompt("Qwen Prompt Enhancer",{"prompt":"the man in the moon"}) | |
| print(prompt) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |
Xet Storage Details
- Size:
- 1.05 kB
- Xet hash:
- b9475488423c19cdbfb78e6ba0c6580cbbdd2810c0c9efdba48c07f001a63385
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.