API reference¶
Generated documentation for the gaze package, organised by area. Each page
renders the module's public classes and functions from their docstrings.
Core modules¶
- Base processor:
AgenticProcessorBaseand the agentic loop - Types:
ToolCall,ToolResult,Turn,AgenticResult - Configuration: frozen config dataclasses and
config_context() - Exceptions:
GazeErrorhierarchy - Prompts: Jinja template loading and rendering
Models¶
- Adapter protocol: the interface all adapters implement
- OpenAI adapter: OpenAI API and OpenRouter
- LM Studio adapter: local model inference
- HuggingFace adapter: local torch/transformers models
Tools¶
- Tool registry:
ToolRegistrymanagement - Visual tools: 23 image manipulation tools
- Search tools: PubMed and Open-i search
Retrieval¶
- PubMed search: NCBI E-utilities
- Image search: Open-i medical images
Extensions¶
- Verifiers integration: RL reward functions and environments
- Utilities: IoU, JSON extraction, type coercion