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 {
|
func (a *IntentAction) Definition() ActionDefinition {
|
||||||
return ActionDefinition{
|
return ActionDefinition{
|
||||||
Name: "intent",
|
Name: "pick_tool",
|
||||||
Description: "detect user intent",
|
Description: "Pick a tool",
|
||||||
Properties: map[string]jsonschema.Definition{
|
Properties: map[string]jsonschema.Definition{
|
||||||
"reasoning": {
|
"reasoning": {
|
||||||
Type: jsonschema.String,
|
Type: jsonschema.String,
|
||||||
|
|||||||
@@ -25,8 +25,8 @@ func (a *ReasoningAction) Run(context.Context, ActionParams) (string, error) {
|
|||||||
|
|
||||||
func (a *ReasoningAction) Definition() ActionDefinition {
|
func (a *ReasoningAction) Definition() ActionDefinition {
|
||||||
return ActionDefinition{
|
return ActionDefinition{
|
||||||
Name: "think",
|
Name: "pick_action",
|
||||||
Description: "try to understand what's the best thing to do",
|
Description: "try to understand what's the best thing to do and pick an action with a reasoning",
|
||||||
Properties: map[string]jsonschema.Definition{
|
Properties: map[string]jsonschema.Definition{
|
||||||
"reasoning": {
|
"reasoning": {
|
||||||
Type: jsonschema.String,
|
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.`
|
We already have called other tools. Evaluate the current situation and decide if we need to execute other tools.`
|
||||||
|
|
||||||
const pickActionTemplate = hudTemplate + `
|
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 -}}
|
{{range .Actions -}}
|
||||||
- {{.Name}}: {{.Description }}
|
- {{.Name}}: {{.Description }}
|
||||||
|
|||||||
Reference in New Issue
Block a user