Skip to main content
Glama
agent.py494 B
import asyncio from fast_agent import FastAgent # Create the application fast = FastAgent("fast-agent example") default_instruction = """You are a helpful AI Agent.""" # Define the agent @fast.agent(instruction=default_instruction, model="haiku", servers=["chemspace"]) async def main(): # use the --model command line switch or agent arguments to change model async with fast.run() as agent: await agent.interactive() if __name__ == "__main__": asyncio.run(main())

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/lukasmki/chemspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server