Documentation
¶
Index ¶
- Constants
- func GetContextValues(ctx context.Context) (string, string)
- type BaseTool
- func NewBashTool(permission permission.Service) BaseTool
- func NewDiagnosticsTool(lspClients map[string]*lsp.Client) BaseTool
- func NewEditTool(lspClients map[string]*lsp.Client, permissions permission.Service, ...) BaseTool
- func NewFetchTool(permissions permission.Service) BaseTool
- func NewGlobTool() BaseTool
- func NewGrepTool() BaseTool
- func NewLsTool() BaseTool
- func NewPatchTool(lspClients map[string]*lsp.Client, permissions permission.Service, ...) BaseTool
- func NewSourcegraphTool() BaseTool
- func NewViewTool(lspClients map[string]*lsp.Client) BaseTool
- func NewWriteTool(lspClients map[string]*lsp.Client, permissions permission.Service, ...) BaseTool
- type BashParams
- type BashPermissionsParams
- type BashResponseMetadata
- type DiagnosticsParams
- type EditParams
- type EditPermissionsParams
- type EditResponseMetadata
- type FetchParams
- type FetchPermissionsParams
- type GlobParams
- type GlobResponseMetadata
- type GrepParams
- type GrepResponseMetadata
- type HandoffAcceptParams
- type HandoffAcceptTool
- type HandoffCreateParams
- type HandoffCreateTool
- type InboxReadParams
- type InboxReadTool
- type LSParams
- type LSResponseMetadata
- type LineScanner
- type PatchParams
- type PatchResponseMetadata
- type SourcegraphParams
- type SourcegraphResponseMetadata
- type SubagentSpawnTool
- type TaskBoardTool
- type TaskCreateParams
- type TaskMoveParams
- type TaskMoveTool
- type TeamAddRoleParams
- type TeamAddRoleTool
- type TeamAssignRoleParams
- type TeamAssignRoleTool
- type TeamBootstrapParams
- type TeamBootstrapRole
- type TeamBootstrapTool
- type TeamBroadcastParams
- type TeamBroadcastTool
- type TeamCreateContextParams
- type TeamMessageSendParams
- type TeamMessageSendTool
- type TeamStatusParams
- type TeamStatusTool
- type TeamTool
- type TeammateSpawnTool
- type ToolCall
- type ToolInfo
- type ToolResponse
- type TreeNode
- type ViewParams
- type ViewResponseMetadata
- type WorkerWaitParams
- type WorkerWaitTool
- type WriteParams
- type WritePermissionsParams
- type WriteResponseMetadata
Constants ¶
View Source
const ( BashToolName = "bash" DefaultTimeout = 1 * 60 * 1000 // 1 minutes in milliseconds MaxTimeout = 10 * 60 * 1000 // 10 minutes in milliseconds MaxOutputLength = 30000 )
View Source
const ( LSToolName = "ls" MaxLSFiles = 1000 )
View Source
const ( TeamBootstrapToolName = "team_bootstrap" TeamCreateContextToolName = "team_create_context" TeamAddRoleToolName = "team_add_role" TeamAssignRoleToolName = "team_assign_role" TaskCreateToolName = "task_create" TaskMoveToolName = "task_move" HandoffCreateToolName = "handoff_create" HandoffAcceptToolName = "handoff_accept" InboxReadToolName = "inbox_read" TeamMessageSendToolName = "team_message_send" TeamBroadcastToolName = "team_broadcast" TeamStatusToolName = "team_status" TeammateSpawnToolName = "teammate_spawn" TeammateWaitToolName = "teammate_wait" SubagentSpawnToolName = "subagent_spawn" SubagentWaitToolName = "subagent_wait" )
View Source
const ( ToolResponseTypeText toolResponseType = "text" ToolResponseTypeImage toolResponseType = "image" SessionIDContextKey sessionIDContextKey = "session_id" MessageIDContextKey messageIDContextKey = "message_id" )
View Source
const ( ViewToolName = "view" MaxReadSize = 250 * 1024 DefaultReadLimit = 2000 MaxLineLength = 2000 )
View Source
const (
DiagnosticsToolName = "diagnostics"
)
View Source
const (
EditToolName = "edit"
)
View Source
const (
FetchToolName = "fetch"
)
View Source
const (
GlobToolName = "glob"
)
View Source
const (
GrepToolName = "grep"
)
View Source
const (
PatchToolName = "patch"
)
View Source
const (
SourcegraphToolName = "sourcegraph"
)
View Source
const (
WriteToolName = "write"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseTool ¶
type BaseTool interface {
Info() ToolInfo
Run(ctx context.Context, params ToolCall) (ToolResponse, error)
}
func NewBashTool ¶
func NewBashTool(permission permission.Service) BaseTool
func NewEditTool ¶
func NewFetchTool ¶
func NewFetchTool(permissions permission.Service) BaseTool
func NewGlobTool ¶
func NewGlobTool() BaseTool
func NewGrepTool ¶
func NewGrepTool() BaseTool
func NewPatchTool ¶
func NewSourcegraphTool ¶
func NewSourcegraphTool() BaseTool
func NewWriteTool ¶
type BashParams ¶
type BashPermissionsParams ¶
type BashResponseMetadata ¶
type DiagnosticsParams ¶
type DiagnosticsParams struct {
FilePath string `json:"file_path"`
}
type EditParams ¶
type EditPermissionsParams ¶
type EditResponseMetadata ¶
type FetchParams ¶
type FetchPermissionsParams ¶
type GlobParams ¶
type GlobResponseMetadata ¶
type GrepParams ¶
type GrepResponseMetadata ¶
type HandoffAcceptParams ¶
type HandoffAcceptTool ¶
type HandoffAcceptTool struct {
// contains filtered or unexported fields
}
func NewHandoffAcceptTool ¶
func NewHandoffAcceptTool(service *team.Service) *HandoffAcceptTool
func (*HandoffAcceptTool) Info ¶
func (t *HandoffAcceptTool) Info() ToolInfo
func (*HandoffAcceptTool) Run ¶
func (t *HandoffAcceptTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type HandoffCreateParams ¶
type HandoffCreateTool ¶
type HandoffCreateTool struct {
// contains filtered or unexported fields
}
func NewHandoffCreateTool ¶
func NewHandoffCreateTool(service *team.Service) *HandoffCreateTool
func (*HandoffCreateTool) Info ¶
func (t *HandoffCreateTool) Info() ToolInfo
func (*HandoffCreateTool) Run ¶
func (t *HandoffCreateTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type InboxReadParams ¶
type InboxReadTool ¶
type InboxReadTool struct {
// contains filtered or unexported fields
}
func NewInboxReadTool ¶
func NewInboxReadTool(service *team.Service) *InboxReadTool
func (*InboxReadTool) Info ¶
func (t *InboxReadTool) Info() ToolInfo
func (*InboxReadTool) Run ¶
func (t *InboxReadTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type LSResponseMetadata ¶
type LineScanner ¶
type LineScanner struct {
// contains filtered or unexported fields
}
func NewLineScanner ¶
func NewLineScanner(r io.Reader) *LineScanner
func (*LineScanner) Err ¶
func (s *LineScanner) Err() error
func (*LineScanner) Scan ¶
func (s *LineScanner) Scan() bool
func (*LineScanner) Text ¶
func (s *LineScanner) Text() string
type PatchParams ¶
type PatchParams struct {
PatchText string `json:"patch_text"`
}
type PatchResponseMetadata ¶
type SourcegraphParams ¶
type SubagentSpawnTool ¶
type SubagentSpawnTool struct {
// contains filtered or unexported fields
}
func NewSubagentSpawnTool ¶
func NewSubagentSpawnTool(service *team.Service, manager *orchestration.Manager) *SubagentSpawnTool
func (*SubagentSpawnTool) Info ¶
func (t *SubagentSpawnTool) Info() ToolInfo
func (*SubagentSpawnTool) Run ¶
func (t *SubagentSpawnTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TaskBoardTool ¶
type TaskBoardTool struct {
// contains filtered or unexported fields
}
func NewTaskBoardTool ¶
func NewTaskBoardTool(service *team.Service) *TaskBoardTool
func (*TaskBoardTool) Info ¶
func (t *TaskBoardTool) Info() ToolInfo
func (*TaskBoardTool) Run ¶
func (t *TaskBoardTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TaskCreateParams ¶
type TaskMoveParams ¶
type TaskMoveTool ¶
type TaskMoveTool struct {
// contains filtered or unexported fields
}
func NewTaskMoveTool ¶
func NewTaskMoveTool(service *team.Service) *TaskMoveTool
func (*TaskMoveTool) Info ¶
func (t *TaskMoveTool) Info() ToolInfo
func (*TaskMoveTool) Run ¶
func (t *TaskMoveTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamAddRoleParams ¶
type TeamAddRoleTool ¶
type TeamAddRoleTool struct {
// contains filtered or unexported fields
}
func NewTeamAddRoleTool ¶
func NewTeamAddRoleTool(service *team.Service) *TeamAddRoleTool
func (*TeamAddRoleTool) Info ¶
func (t *TeamAddRoleTool) Info() ToolInfo
func (*TeamAddRoleTool) Run ¶
func (t *TeamAddRoleTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamAssignRoleParams ¶
type TeamAssignRoleTool ¶
type TeamAssignRoleTool struct {
// contains filtered or unexported fields
}
func NewTeamAssignRoleTool ¶
func NewTeamAssignRoleTool(service *team.Service) *TeamAssignRoleTool
func (*TeamAssignRoleTool) Info ¶
func (t *TeamAssignRoleTool) Info() ToolInfo
func (*TeamAssignRoleTool) Run ¶
func (t *TeamAssignRoleTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamBootstrapParams ¶
type TeamBootstrapParams struct {
TeamName string `json:"team_name"`
Objective string `json:"objective"`
LeadName string `json:"lead_name"`
Roles []TeamBootstrapRole `json:"roles"`
SpawnTeammates *bool `json:"spawn_teammates"`
}
type TeamBootstrapRole ¶
type TeamBootstrapTool ¶
type TeamBootstrapTool struct {
// contains filtered or unexported fields
}
func NewTeamBootstrapTool ¶
func NewTeamBootstrapTool(service *team.Service, manager *orchestration.Manager) *TeamBootstrapTool
func (*TeamBootstrapTool) Info ¶
func (t *TeamBootstrapTool) Info() ToolInfo
func (*TeamBootstrapTool) Run ¶
func (t *TeamBootstrapTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamBroadcastParams ¶
type TeamBroadcastTool ¶
type TeamBroadcastTool struct {
// contains filtered or unexported fields
}
func NewTeamBroadcastTool ¶
func NewTeamBroadcastTool(service *team.Service) *TeamBroadcastTool
func (*TeamBroadcastTool) Info ¶
func (t *TeamBroadcastTool) Info() ToolInfo
func (*TeamBroadcastTool) Run ¶
func (t *TeamBroadcastTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamCreateContextParams ¶
type TeamMessageSendParams ¶
type TeamMessageSendTool ¶
type TeamMessageSendTool struct {
// contains filtered or unexported fields
}
func NewTeamMessageSendTool ¶
func NewTeamMessageSendTool(service *team.Service) *TeamMessageSendTool
func (*TeamMessageSendTool) Info ¶
func (t *TeamMessageSendTool) Info() ToolInfo
func (*TeamMessageSendTool) Run ¶
func (t *TeamMessageSendTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamStatusParams ¶
type TeamStatusParams struct {
TeamName string `json:"team_name"`
}
type TeamStatusTool ¶
type TeamStatusTool struct {
// contains filtered or unexported fields
}
func NewTeamStatusTool ¶
func NewTeamStatusTool(service *team.Service, manager *orchestration.Manager) *TeamStatusTool
func (*TeamStatusTool) Info ¶
func (t *TeamStatusTool) Info() ToolInfo
func (*TeamStatusTool) Run ¶
func (t *TeamStatusTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type TeamTool ¶
type TeamTool struct {
// contains filtered or unexported fields
}
func NewTeamTool ¶
type TeammateSpawnTool ¶
type TeammateSpawnTool struct {
// contains filtered or unexported fields
}
func NewTeammateSpawnTool ¶
func NewTeammateSpawnTool(service *team.Service, manager *orchestration.Manager) *TeammateSpawnTool
func (*TeammateSpawnTool) Info ¶
func (t *TeammateSpawnTool) Info() ToolInfo
func (*TeammateSpawnTool) Run ¶
func (t *TeammateSpawnTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type ToolResponse ¶
type ToolResponse struct {
Type toolResponseType `json:"type"`
Content string `json:"content"`
Metadata string `json:"metadata,omitempty"`
IsError bool `json:"is_error"`
}
func NewTextErrorResponse ¶
func NewTextErrorResponse(content string) ToolResponse
func NewTextResponse ¶
func NewTextResponse(content string) ToolResponse
func WithResponseMetadata ¶
func WithResponseMetadata(response ToolResponse, metadata any) ToolResponse
type ViewParams ¶
type ViewResponseMetadata ¶
type WorkerWaitParams ¶
type WorkerWaitParams struct {
WorkerID string `json:"worker_id"`
}
type WorkerWaitTool ¶
type WorkerWaitTool struct {
// contains filtered or unexported fields
}
func NewSubagentWaitTool ¶
func NewSubagentWaitTool(manager *orchestration.Manager) *WorkerWaitTool
func NewTeammateWaitTool ¶
func NewTeammateWaitTool(service *team.Service, manager *orchestration.Manager) *WorkerWaitTool
func (*WorkerWaitTool) Info ¶
func (t *WorkerWaitTool) Info() ToolInfo
func (*WorkerWaitTool) Run ¶
func (t *WorkerWaitTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
type WriteParams ¶
type WritePermissionsParams ¶
type WriteResponseMetadata ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.