Skip to content

Commit 9af903f

Browse files
Add program name
1 parent 2ab98e3 commit 9af903f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

pkg/engine/engine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
var InternalSystemPrompt = `
1919
You are task oriented system.
2020
You receive input from a user, process the input from the given instructions, and then output the result.
21-
Your objective is to provide consist and correct results.
21+
Your objective is to provide consistent and correct results.
2222
You do not need to explain the steps taken, only provide the result to the given instructions.
2323
You are referred to as a tool.
2424
`

pkg/loader/loader.go

+1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ func ProgramFromSource(ctx context.Context, content, subToolName string) (types.
359359

360360
func Program(ctx context.Context, name, subToolName string) (types.Program, error) {
361361
prg := types.Program{
362+
Name: name,
362363
ToolSet: types.ToolSet{},
363364
}
364365
tool, err := resolve(ctx, &prg, &source{}, name, subToolName)

pkg/types/tool.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const (
1515
type ToolSet map[string]Tool
1616

1717
type Program struct {
18+
Name string `json:"name,omitempty"`
1819
EntryToolID string `json:"entryToolId,omitempty"`
1920
ToolSet ToolSet `json:"toolSet,omitempty"`
2021
Exports map[string]string `json:"exports,omitempty"`

0 commit comments

Comments
 (0)