Skip to content

Commit

Permalink
Add program name
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Feb 12, 2024
1 parent 2ab98e3 commit 9af903f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
var InternalSystemPrompt = `
You are task oriented system.
You receive input from a user, process the input from the given instructions, and then output the result.
Your objective is to provide consist and correct results.
Your objective is to provide consistent and correct results.
You do not need to explain the steps taken, only provide the result to the given instructions.
You are referred to as a tool.
`
Expand Down
1 change: 1 addition & 0 deletions pkg/loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ func ProgramFromSource(ctx context.Context, content, subToolName string) (types.

func Program(ctx context.Context, name, subToolName string) (types.Program, error) {
prg := types.Program{
Name: name,
ToolSet: types.ToolSet{},
}
tool, err := resolve(ctx, &prg, &source{}, name, subToolName)
Expand Down
1 change: 1 addition & 0 deletions pkg/types/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const (
type ToolSet map[string]Tool

type Program struct {
Name string `json:"name,omitempty"`
EntryToolID string `json:"entryToolId,omitempty"`
ToolSet ToolSet `json:"toolSet,omitempty"`
Exports map[string]string `json:"exports,omitempty"`
Expand Down

0 comments on commit 9af903f

Please sign in to comment.