-
Notifications
You must be signed in to change notification settings - Fork 708
Closed
Description
The ToolHandlerFunc
has a return type of (*CallToolResult, error)
. I had assumed that if something was wrong I could return an error (e.g. return nil, fmt.Errorf("entity not found: %v", id)
) and this would bubble up to the LLM. This doesn't appear to be the case, it seems the LLM simply gets an empty response, and therefor doesn't know what happened. If instead I return NewToolResultText(fmt.Sprintf("entity not found: %v", id)), nil
it does work.
I haven't debugged through it, so I may be mistaken...
What is the intended behavior here?
Metadata
Metadata
Assignees
Labels
No labels