Learn how to manage AI agents in the NextCoder platform
AI agents are the core intelligence behind NextCoder's automation capabilities. Each agent can be configured with different models and prompts to perform specific tasks within a workspace.
NextCoder supports multiple AI models:
AI agents can be created through the dashboard UI or via the API.
// Create a new AI agent via API
const response = await fetch('/api/agents', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
workspaceId: 'workspace-123',
modelName: 'claude-sonnet',
config: {
prompt: 'Generate a React component that displays a todo list',
temperature: 0.7
}
}),
});
const agent = await response.json();| Method | Endpoint | Description |
|---|---|---|
| GET | /api/agents | List all agents |
| POST | /api/agents | Create a new agent |
| GET | /api/agents/{id} | Get agent details |
| PUT | /api/agents/{id} | Update an agent |
| DELETE | /api/agents/{id} | Delete an agent |
interface AI_Agent {
id: string;
workspaceId: string;
modelName: string;
configJson: string; // JSON string of configuration
createdAt: Date;
updatedAt: Date;
}