Error Handling
Managing errors fired by your agent.
try {
// Your code here...
} catch (NeuronAI\Exceptions\NeuronException $e) {
// ...
} catch (NeuronAI\Exceptions\ProviderException $e) {
// ...
} catch (NeuronAI\Exceptions\AgentException $e) {
// ...
} catch (NeuronAI\Exceptions\ChatHistoryException $e) {
// ...
} catch (NeuronAI\Exceptions\HttpException $e) {
// ...
} catch (NeuronAI\Exceptions\ToolException $e) {
// ...
} catch (NeuronAI\Exceptions\VectorStoreException $e) {
// ...
} catch (NeuronAI\Exceptions\WorkflowException $e) {
// ...
} catch (NeuronAI\Exceptions\DataReaderException $e) {
// ...
}Last updated