Small renames
This commit is contained in:
@@ -27,8 +27,8 @@ func (a *IntentAction) Run(context.Context, ActionParams) (string, error) {
|
||||
|
||||
func (a *IntentAction) Definition() ActionDefinition {
|
||||
return ActionDefinition{
|
||||
Name: "intent",
|
||||
Description: "detect user intent",
|
||||
Name: "pick_tool",
|
||||
Description: "Pick a tool",
|
||||
Properties: map[string]jsonschema.Definition{
|
||||
"reasoning": {
|
||||
Type: jsonschema.String,
|
||||
|
||||
@@ -25,8 +25,8 @@ func (a *ReasoningAction) Run(context.Context, ActionParams) (string, error) {
|
||||
|
||||
func (a *ReasoningAction) Definition() ActionDefinition {
|
||||
return ActionDefinition{
|
||||
Name: "think",
|
||||
Description: "try to understand what's the best thing to do",
|
||||
Name: "pick_action",
|
||||
Description: "try to understand what's the best thing to do and pick an action with a reasoning",
|
||||
Properties: map[string]jsonschema.Definition{
|
||||
"reasoning": {
|
||||
Type: jsonschema.String,
|
||||
|
||||
@@ -84,7 +84,7 @@ const reSelfEvalTemplate = pickSelfTemplate + `
|
||||
We already have called other tools. Evaluate the current situation and decide if we need to execute other tools.`
|
||||
|
||||
const pickActionTemplate = hudTemplate + `
|
||||
When deciding what to do, consider that you can take any of the following tools:
|
||||
When you have to pick a tool in the reasoning explain how you would use the tools you'd pick from:
|
||||
|
||||
{{range .Actions -}}
|
||||
- {{.Name}}: {{.Description }}
|
||||
|
||||
Reference in New Issue
Block a user