@@ -65,7 +65,7 @@ type bashDescriptionData struct {
65 BannedCommands string
65 BannedCommands string
66 MaxOutputLength int
66 MaxOutputLength int
67 Attribution config.Attribution
67 Attribution config.Attribution
68− ModelName string
68+ ModelID string
71var bannedCommands = []string{
71var bannedCommands = []string{
@@ -141,14 +141,14 @@ var bannedCommands = []string{
144−func bashDescription(attribution *config.Attribution, modelName string) string {
144+func bashDescription(attribution *config.Attribution, modelID string) string {
145 bannedCommandsStr := strings.Join(bannedCommands, ", ")
145 bannedCommandsStr := strings.Join(bannedCommands, ", ")
146 var out bytes.Buffer
146 var out bytes.Buffer
147 if err := bashDescriptionTpl.Execute(&out, bashDescriptionData{
147 if err := bashDescriptionTpl.Execute(&out, bashDescriptionData{
148 BannedCommands: bannedCommandsStr,
148 BannedCommands: bannedCommandsStr,
149 MaxOutputLength: MaxOutputLength,
149 MaxOutputLength: MaxOutputLength,
150 Attribution: *attribution,
150 Attribution: *attribution,
151− ModelName: modelName,
151+ ModelID: modelID,
152 }); err != nil {
152 }); err != nil {
153 // this should never happen.
153 // this should never happen.
154 panic("failed to execute bash description template: " + err.Error())
154 panic("failed to execute bash description template: " + err.Error())
@@ -188,10 +188,10 @@ func blockFuncs() []shell.BlockFunc {
191−func NewBashTool(permissions permission.Service, workingDir string, attribution *config.Attribution, modelName string) fantasy.AgentTool {
191+func NewBashTool(permissions permission.Service, workingDir string, attribution *config.Attribution, modelID string) fantasy.AgentTool {
192 return fantasy.NewAgentTool(
192 return fantasy.NewAgentTool(
193 BashToolName,
193 BashToolName,
194− string(bashDescription(attribution, modelName)),
194+ string(bashDescription(attribution, modelID)),
195 func(ctx context.Context, params BashParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
195 func(ctx context.Context, params BashParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
196 if params.Command == "" {
196 if params.Command == "" {
197 return fantasy.NewTextErrorResponse("missing command"), nil
197 return fantasy.NewTextErrorResponse("missing command"), nil