Documentation Index
Fetch the complete documentation index at: https://docs.re-factor.ai/llms.txt
Use this file to discover all available pages before exploring further.
Agents are currently in private alpha and subject to change. If you would like to them out, please reach out to re-factor Support.
Motivation
Agents in re-factor are autonomous AI workers that can understand complex instructions, make decisions, and execute tasks using available tools and resources. They represent a powerful way to automate sophisticated workflows while maintaining human-like reasoning capabilities.Basic Features
An agent in re-factor consists of several core components:- A
systemmessage that defines the agent’s role, capabilities, and constraints - Access to a specific set of tools that the agent can use
- A memory system that maintains context across interactions
- Built-in error handling and recovery mechanisms
Enhanced Features
Tool Integration
Agents can be configured with access to specific tools, allowing them to:Memory Management
Agents maintain context through a sophisticated memory system that includes:- Short-term conversation memory
- Long-term knowledge storage
- Tool execution history
- Previous decision contexts
Error Handling
Agents come with built-in error handling capabilities:- Automatic retry mechanisms for failed tool executions
- Graceful degradation when encountering limitations
- Clear error reporting and recovery suggestions
- Ability to ask for human intervention when needed
Monitoring and Observability
Every agent provides detailed insights into its operation:- Real-time execution tracking
- Decision-making logs
- Tool usage statistics
- Performance metrics
Schema
Agents in re-factor are defined using Zod schemas for type safety and validation:Example Usage
Best Practices
When working with agents in re-factor:- Define clear and specific system messages
- Limit tool access to only what’s necessary
- Implement proper error handling
- Monitor agent performance and resource usage
- Set appropriate timeout and retry limits
- Document agent capabilities and limitations

