Small renames

This commit is contained in:
mudler
2024-05-23 18:59:10 +02:00
parent 989a2421ba
commit 6d866985e8
3 changed files with 5 additions and 5 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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 }}