From 6d866985e8b012520b46506f3709f941ebf8a8ad Mon Sep 17 00:00:00 2001 From: mudler Date: Thu, 23 May 2024 18:59:10 +0200 Subject: [PATCH] Small renames --- action/intention.go | 4 ++-- action/reasoning.go | 4 ++-- agent/templates.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/action/intention.go b/action/intention.go index 2148a42..968e8f0 100644 --- a/action/intention.go +++ b/action/intention.go @@ -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, diff --git a/action/reasoning.go b/action/reasoning.go index f6a5e9a..122e222 100644 --- a/action/reasoning.go +++ b/action/reasoning.go @@ -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, diff --git a/agent/templates.go b/agent/templates.go index e162f12..0b2055e 100644 --- a/agent/templates.go +++ b/agent/templates.go @@ -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 }}