You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output: fmt.Sprintf("The agent %s handed off the conversation to you, look at the history of the conversation and continue where it left off. Once you are done with your task or if the user asks you, handoff the conversation back to %s.", ca, ca),
1369
-
}, nil
1363
+
returntools.ResultSuccess(fmt.Sprintf("The agent %s handed off the conversation to you, look at the history of the conversation and continue where it left off. Once you are done with your task or if the user asks you, handoff the conversation back to %s.", ca, ca)), nil
1370
1364
}
1371
1365
1372
1366
// Summarize generates a summary for the session based on the conversation history
Output: fmt.Sprintf("Tool '%s' is already active", args.Name),
132
-
}, nil
126
+
returntools.ResultSuccess(fmt.Sprintf("Tool '%s' is already active", args.Name)), nil
133
127
}
134
128
135
129
entry, exists:=d.deferredTools[args.Name]
136
130
if!exists {
137
-
return&tools.ToolCallResult{
138
-
Output: fmt.Sprintf("Tool '%s' not found.", args.Name),
139
-
}, nil
131
+
returntools.ResultError(fmt.Sprintf("Tool '%s' not found.", args.Name)), nil
140
132
}
141
133
142
134
delete(d.deferredTools, args.Name)
143
135
d.activatedTools[args.Name] =entry.tool
144
136
145
-
return&tools.ToolCallResult{
146
-
Output: fmt.Sprintf("Tool '%s' has been activated and is now available for use.\n\nDescription: %s", args.Name, entry.tool.Description),
147
-
}, nil
137
+
returntools.ResultSuccess(fmt.Sprintf("Tool '%s' has been activated and is now available for use.\n\nDescription: %s", args.Name, entry.tool.Description)), nil
0 commit comments