Buckets:
| import asyncio | |
| from mcp_agent.core.fastagent import FastAgent | |
| # Create the application | |
| fast = FastAgent("mcp server tests") | |
| # Define the agent | |
| async def main(): | |
| # use the --model command line switch or agent arguments to change model | |
| async with fast.run() as agent: | |
| await agent.interactive() | |
| # anonymous tool calling | |
| await agent.anon("***CALL_TOOL hf_whoami {}") | |
| await agent.anon.apply_prompt("Model Details",{"model_id": "openai/gpt-oss-120b"}) | |
| await agent.anon.apply_prompt("Dataset Details",{"dataset_id": "Anthropic/hh-rlhf"}) | |
| # prompt application | |
| await agent.anon.apply_prompt("User Summary",{"user_id": "DVe0UTvm4"}) | |
| await agent.anon.apply_prompt("Paper Summary",{"paper_id": "arxiv:2502.16161"}) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |
Xet Storage Details
- Size:
- 922 Bytes
- Xet hash:
- 6e1bd670d6920f06ee54b613e9779025b58eaf8a54d51cf8d06738cc84cd4281
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.