Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 985 Bytes

AGENTS.md

File metadata and controls

21 lines (18 loc) · 985 Bytes

Agent Guidelines

Run Commands

  • Run main agent: .venv/bin/python agent.py
  • Run single example: .venv/bin/python examples/01_simple_chat.py
  • Run example via script: ./examples/EJECUTAR_EJEMPLOS.sh 2
  • No tests/linting configured in this project

Code Style

  • Imports: Use from mcp_agent import FastAgent, RequestParams
  • Async: Always use async def for agents with asyncio.run(main())
  • Docstrings: Module-level triple-quoted docstrings at top of each file
  • Decorators: Use @fast.agent() with named agents and instruction parameter
  • Indentation: 4 spaces (not tabs)
  • Strings: Use triple-quoted strings for multi-line instructions
  • Comments: Inline comments use # for explanations

Configuration

  • Models: Use prefix generic. for Ollama models (e.g., generic.qwen3:4b)
  • Config file: fastagent.config.yaml in project root
  • RequestParams: Use maxTokens and temperature to control output