Overview
Reminix agents are stateless functions that process requests and return responses. When you call an agent through the Reminix API, here’s what happens:Agent Lifecycle
1. Request Received
When your app callsinvoke(), Reminix receives the request and routes it to the appropriate agent based on the agent name.
2. Agent Execution
The agent processes the request:- For task agents: Receives the input (e.g.,
prompt), performs the task, returns output - For chat agents: Receives the message history, generates a response
3. Response Delivered
The response is returned to your app. If streaming is enabled, chunks are delivered in real-time via Server-Sent Events.Stateless by Design
Agents don’t maintain state between requests. Each request is independent:Context and Configuration
You can pass additional context to agents:Timeouts
Agents have a default timeout. For long-running tasks, consider:- Streaming: Get partial results as they’re generated
- Breaking up work: Split large tasks into smaller chunks
- Async patterns: Use webhooks for very long operations