Agent errors cover the full lifecycle of agent operations — from not-found and configuration issues to execution failures, loop limits, timeouts, and LLM adapter problems.
new AgentConfigurationError(message: string, options?: { agentId?: string; errors?: string[];})
Example:
import { AgentConfigurationError } from '@frontmcp/sdk';throw new AgentConfigurationError('Missing model configuration', { agentId: 'planner', errors: ['model is required', 'tools must be a non-empty array'],});
Thrown when an agent doesn’t have an LLM adapter configured. This is an internal error.
Property
Type
Value
code
string
AGENT_NOT_CONFIGURED
statusCode
number
500
isPublic
boolean
false
agentName
string
The unconfigured agent
new AgentNotConfiguredError(agentName: string)
Example:
import { AgentNotConfiguredError } from '@frontmcp/sdk';throw new AgentNotConfiguredError('planner');// "Agent "planner" has no LLM adapter configured"