-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
AgentIssues & PRs about the AI Agent componentIssues & PRs about the AI Agent componentFeatureNew featureNew featureRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)
Description
Currently we always return the same static response in
return \sprintf('An error occurred while executing tool "%s".', $e->toolCall->name); |
For example, if a tool execution is prevented due to AccessDeniedException
, the LLM still sees this static error.
I think we could have some exception interface, like
interface ToolCallExceptionInterface
{
public function getToolCallResult(): ?string;
}
and then return that as tool call response instead of static message.
Use cases
- The AI agent would be able to tell the user "Sorry mate, permission denied to perform the requested action".
- The AI agent could auto-fix the issue of providing wrong parameters to the function call
Metadata
Metadata
Assignees
Labels
AgentIssues & PRs about the AI Agent componentIssues & PRs about the AI Agent componentFeatureNew featureNew featureRFCRFC = Request For Comments (proposals about features that you want to be discussed)RFC = Request For Comments (proposals about features that you want to be discussed)