on main help sign in
fix(tools/job_kill): use longer job_kill desc to improve reliability (#2747)
86bb805Christian Rocha
internal/agent/tools/job_kill.go+1−1
@@ -29,7 +29,7 @@ type JobKillResponseMetadata struct {
29func NewJobKillTool() fantasy.AgentTool {
29func NewJobKillTool() fantasy.AgentTool {
30 return fantasy.NewAgentTool(
30 return fantasy.NewAgentTool(
31 JobKillToolName,
31 JobKillToolName,
32− FirstLineDescription(jobKillDescription),
32+ string(jobKillDescription),
33 func(ctx context.Context, params JobKillParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
33 func(ctx context.Context, params JobKillParams, call fantasy.ToolCall) (fantasy.ToolResponse, error) {
34 if params.ShellID == "" {
34 if params.ShellID == "" {
35 return fantasy.NewTextErrorResponse("missing shell_id"), nil
35 return fantasy.NewTextErrorResponse("missing shell_id"), nil
internal/agent/tools/job_kill.md+1−1
@@ -1,4 +1,4 @@
1−Terminate a background shell process by ID; shell ID becomes invalid after killing.
1+Terminate a background shell process.
2
2
3<usage>
3<usage>
4- Provide the shell ID returned from a background bash execution
4- Provide the shell ID returned from a background bash execution