Learn how to configure NOMOS agents using Python API and YAML files
NOMOS provides flexible configuration options through both Python API and YAML files, supporting a spectrum from no-code to full-code development.
See a comprehensive configuration example
Create a JSON schema for your configuration to enable editor validation and autocompletion:
Include the schema in your YAML file:
New in v0.2.4: You can now specify tools directly in your agent configuration file
You can organize your own tools in Python modules:
You can provide decision examples for any step. Each example contains the user context and the expected decision. NOMOS retrieves relevant examples using embeddings and includes them in the system prompt to guide the model.
Use the max_examples
and threshold
settings in AgentConfig
to control how many examples are displayed and the minimum similarity required.
Common environment variables for NOMOS agents:
Variable | Description | Required |
---|---|---|
OPENAI_API_KEY | OpenAI API key | If using OpenAI |
MISTRAL_API_KEY | Mistral API key | If using Mistral |
GOOGLE_API_KEY | Google API key | If using Gemini |
HUGGINGFACE_API_TOKEN | HuggingFace token | If using HuggingFace |
ANTHROPIC_API_KEY | Anthropic API key | If using Anthropic |
More configuration examples are available in the cookbook:
Complete coffee ordering workflow
Budget planning and financial advice
Basic conversational agent
Travel planning assistant