Skip to content

Commit c1c49c9

Browse files
Merge remote-tracking branch 'upstream/main' into pagination-for-session-messages
2 parents 1e3972e + 26330cc commit c1c49c9

File tree

21 files changed

+27
-51
lines changed

21 files changed

+27
-51
lines changed

pkg/creator/agent.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ import (
2727
var agentBuilderInstructions string
2828

2929
type fsToolset struct {
30+
tools.ElicitationTool
31+
3032
inner tools.ToolSet
3133
originalWriteFileHandler tools.ToolHandler
3234
path string
@@ -44,14 +46,6 @@ func (f *fsToolset) Stop(ctx context.Context) error {
4446
return f.inner.Stop(ctx)
4547
}
4648

47-
func (f *fsToolset) SetElicitationHandler(tools.ElicitationHandler) {
48-
// No-op, this tool does not use elicitation
49-
}
50-
51-
func (f *fsToolset) SetOAuthSuccessHandler(func()) {
52-
// No-op, this tool does not use OAuth
53-
}
54-
5549
func (f *fsToolset) Tools(ctx context.Context) ([]tools.Tool, error) {
5650
innerTools, err := f.inner.Tools(ctx)
5751
if err != nil {

pkg/teamloader/teamloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"time"
1212

1313
"github.com/docker/cagent/pkg/agent"
14-
"github.com/docker/cagent/pkg/codemode"
1514
"github.com/docker/cagent/pkg/config"
1615
latest "github.com/docker/cagent/pkg/config/v2"
1716
"github.com/docker/cagent/pkg/environment"
@@ -24,6 +23,7 @@ import (
2423
"github.com/docker/cagent/pkg/team"
2524
"github.com/docker/cagent/pkg/tools"
2625
"github.com/docker/cagent/pkg/tools/builtin"
26+
"github.com/docker/cagent/pkg/tools/codemode"
2727
"github.com/docker/cagent/pkg/tools/mcp"
2828
)
2929

pkg/tools/builtin/builtiin.go

Lines changed: 0 additions & 13 deletions
This file was deleted.

pkg/tools/builtin/fetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
const userAgent = "cagent/1.0"
2121

2222
type FetchTool struct {
23-
elicitationTool
23+
tools.ElicitationTool
2424
handler *fetchHandler
2525
}
2626

pkg/tools/builtin/filesystem.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type PostEditConfig struct {
2424
}
2525

2626
type FilesystemTool struct {
27-
elicitationTool
27+
tools.ElicitationTool
2828

2929
allowedDirectories []string
3030
allowedTools []string

pkg/tools/builtin/memory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
type MemoryTool struct {
15-
elicitationTool
15+
tools.ElicitationTool
1616
manager memorymanager.Manager
1717
}
1818

pkg/tools/builtin/script_shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
type ScriptShellTool struct {
17-
elicitationTool
17+
tools.ElicitationTool
1818
shellTools map[string]latest.ScriptShellToolConfig
1919
env []string
2020
}

pkg/tools/builtin/shell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
)
1616

1717
type ShellTool struct {
18-
elicitationTool
18+
tools.ElicitationTool
1919
handler *shellHandler
2020
}
2121

pkg/tools/builtin/think.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
type ThinkTool struct {
13-
elicitationTool
13+
tools.ElicitationTool
1414
handler *thinkHandler
1515
}
1616

pkg/tools/builtin/todo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
type TodoTool struct {
15-
elicitationTool
15+
tools.ElicitationTool
1616
handler *todoHandler
1717
}
1818

0 commit comments

Comments
 (0)