Documentation
¶
Index ¶
- func CanonicalToolName(name string) string
- func IsExecToolName(name string) bool
- func ToolNameAliases() map[string]string
- type ContentBlock
- type HeartbeatRunResult
- type HeartbeatStatus
- type ProcessManager
- func (m *ProcessManager) ClearDone() int
- func (m *ProcessManager) Kill(sessionID string) (ProcessSnapshot, error)
- func (m *ProcessManager) List() []ProcessSnapshot
- func (m *ProcessManager) Log(sessionID string) (ProcessSnapshot, error)
- func (m *ProcessManager) Poll(sessionID string) (ProcessSnapshot, error)
- func (m *ProcessManager) Remove(sessionID string) error
- func (m *ProcessManager) Start(ctx context.Context, workspaceDir, commandLine string, timeoutMS int) (ProcessSnapshot, error)
- func (m *ProcessManager) Write(sessionID string, chars string) (ProcessSnapshot, error)
- type ProcessSnapshot
- type Registry
- type Result
- type SessionStatus
- type TelegramDefaultChatIDResolveFunc
- type TelegramDefaultChatIDResolver
- type TelegramSendFunc
- type TelegramSendRequest
- type TelegramSendResult
- type TelegramSender
- type Tool
- func NewAgentsListTool(runtime *gateway.Runtime) Tool
- func NewApplyPatchTool(workspaceDir string, enabled bool) Tool
- func NewBrowserTool(runtime *gateway.Runtime, enabled bool) Tool
- func NewCronCreateTool(store *cron.Store) Tool
- func NewCronDeleteTool(store *cron.Store) Tool
- func NewCronGetTool(store *cron.Store) Tool
- func NewCronListTool(store *cron.Store) Tool
- func NewCronRunTool(store *cron.Store, ...) Tool
- func NewCronRunsTool(store *cron.Store) Tool
- func NewCronTool(store *cron.Store, ...) Tool
- func NewCronUpdateTool(store *cron.Store) Tool
- func NewEditFileTool(workspaceDir string) Tool
- func NewEditTool(workspaceDir string) Tool
- func NewExecTool(workspaceDir string) Tool
- func NewExecToolWithManager(workspaceDir string, manager *ProcessManager) Tool
- func NewGatewayTool(runtime *gateway.Runtime, enabled bool) Tool
- func NewGlobTool(workspaceDir string) Tool
- func NewHeartbeatRunOnceTool(runOnce func(ctx context.Context) (HeartbeatRunResult, error)) Tool
- func NewHeartbeatStatusTool(getStatus func(ctx context.Context) (HeartbeatStatus, error)) Tool
- func NewHeartbeatTool(getStatus func(ctx context.Context) (HeartbeatStatus, error), ...) Tool
- func NewListDirTool(workspaceDir string) Tool
- func NewMemoryGetTool(workspaceDir string) Tool
- func NewMemorySaveTool(workspaceDir string, semantic *memory.Service, nowFn func() time.Time) Tool
- func NewMemorySearchTool(workspaceDir string, semantic *memory.Service) Tool
- func NewMessageTool(runtime *gateway.Runtime, enabled bool) Tool
- func NewNodesTool(runtime *gateway.Runtime, enabled bool) Tool
- func NewOpsCleanupApplyTool(manager *ops.Manager) Tool
- func NewOpsCleanupPlanTool(manager *ops.Manager) Tool
- func NewOpsStatusTool(manager *ops.Manager) Tool
- func NewProcessTool(manager *ProcessManager) Tool
- func NewProjectActivateTool(store *project.Store, sessionStore *session.Store, mainSessionID string) Tool
- func NewProjectActivityAppendTool(store *project.Store) Tool
- func NewProjectActivityGetTool(store *project.Store) Tool
- func NewProjectAutopilotStartTool(manager projectAutopilotStarter) Tool
- func NewProjectBoardGetTool(store *project.Store) Tool
- func NewProjectBoardUpdateTool(store *project.Store) Tool
- func NewProjectBriefFinalizeTool(store *project.Store, sessionStore *session.Store) Tool
- func NewProjectBriefGetTool(store *project.Store) Tool
- func NewProjectBriefUpdateTool(store *project.Store) Tool
- func NewProjectCreateTool(store *project.Store) Tool
- func NewProjectDeleteTool(store *project.Store) Tool
- func NewProjectDispatchTool(store *project.Store, runner project.TaskRunner, ...) Tool
- func NewProjectGetTool(store *project.Store) Tool
- func NewProjectListTool(store *project.Store) Tool
- func NewProjectStateGetTool(store *project.Store) Tool
- func NewProjectStateUpdateTool(store *project.Store) Tool
- func NewProjectUpdateTool(store *project.Store) Tool
- func NewReadFileTool(workspaceDir string) Tool
- func NewReadTool(workspaceDir string) Tool
- func NewResearchReportTool(service *research.Service) Tool
- func NewScheduleCompleteTool(store *schedule.Store) Tool
- func NewScheduleCreateTool(store *schedule.Store) Tool
- func NewScheduleDeleteTool(store *schedule.Store) Tool
- func NewScheduleListTool(store *schedule.Store) Tool
- func NewScheduleUpdateTool(store *schedule.Store) Tool
- func NewSessionStatusTool(getStatus func(ctx context.Context) (SessionStatus, error)) Tool
- func NewSessionsHistoryTool(store *session.Store) Tool
- func NewSessionsListTool(store *session.Store) Tool
- func NewSessionsRunsTool(runtime *gateway.Runtime) Tool
- func NewSessionsSendTool(runtime *gateway.Runtime) Tool
- func NewSessionsSpawnTool(runtime *gateway.Runtime) Tool
- func NewTelegramSendTool(sender TelegramSender, enabled bool, resolver TelegramDefaultChatIDResolver) Tool
- func NewUsageReportTool(tracker *usage.Tracker) Tool
- func NewWebFetchTool(enabled bool) Tool
- func NewWebFetchToolWithOptions(opts WebFetchOptions) Tool
- func NewWebSearchTool(enabled bool, apiKey string) Tool
- func NewWebSearchToolWithOptions(opts WebSearchOptions) Tool
- func NewWriteFileTool(workspaceDir string) Tool
- func NewWriteTool(workspaceDir string) Tool
- type WebFetchOptions
- type WebSearchOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalToolName ¶
func IsExecToolName ¶
func ToolNameAliases ¶
Types ¶
type ContentBlock ¶
type HeartbeatRunResult ¶
type HeartbeatStatus ¶
type HeartbeatStatus struct {
Configured bool `json:"configured"`
ActiveHours string `json:"active_hours,omitempty"`
Timezone string `json:"timezone,omitempty"`
ChatBusy bool `json:"chat_busy,omitempty"`
LastRunAt string `json:"last_run_at,omitempty"`
LastSkipped bool `json:"last_skipped,omitempty"`
LastSkipReason string `json:"last_skip_reason,omitempty"`
LastLogged bool `json:"last_logged,omitempty"`
LastAcknowledged bool `json:"last_acknowledged,omitempty"`
LastResponse string `json:"last_response,omitempty"`
LastError string `json:"last_error,omitempty"`
}
type ProcessManager ¶
type ProcessManager struct {
// contains filtered or unexported fields
}
func NewProcessManager ¶
func NewProcessManager() *ProcessManager
func (*ProcessManager) ClearDone ¶
func (m *ProcessManager) ClearDone() int
func (*ProcessManager) Kill ¶
func (m *ProcessManager) Kill(sessionID string) (ProcessSnapshot, error)
func (*ProcessManager) List ¶
func (m *ProcessManager) List() []ProcessSnapshot
func (*ProcessManager) Log ¶
func (m *ProcessManager) Log(sessionID string) (ProcessSnapshot, error)
func (*ProcessManager) Poll ¶
func (m *ProcessManager) Poll(sessionID string) (ProcessSnapshot, error)
func (*ProcessManager) Remove ¶
func (m *ProcessManager) Remove(sessionID string) error
func (*ProcessManager) Start ¶
func (m *ProcessManager) Start(ctx context.Context, workspaceDir, commandLine string, timeoutMS int) (ProcessSnapshot, error)
func (*ProcessManager) Write ¶
func (m *ProcessManager) Write(sessionID string, chars string) (ProcessSnapshot, error)
type ProcessSnapshot ¶
type ProcessSnapshot struct {
SessionID string `json:"session_id"`
Command string `json:"command"`
Running bool `json:"running"`
Done bool `json:"done"`
ExitCode int `json:"exit_code,omitempty"`
StartedAt string `json:"started_at,omitempty"`
CompletedAt string `json:"completed_at,omitempty"`
Stdout string `json:"stdout,omitempty"`
Stderr string `json:"stderr,omitempty"`
Message string `json:"message,omitempty"`
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) Schemas ¶
func (r *Registry) Schemas() []llm.ToolSchema
func (*Registry) SchemasForNames ¶
func (r *Registry) SchemasForNames(names []string) []llm.ToolSchema
type Result ¶
type Result struct {
Content []ContentBlock `json:"content"`
IsError bool `json:"is_error,omitempty"`
}
type SessionStatus ¶
type TelegramDefaultChatIDResolveFunc ¶
func (TelegramDefaultChatIDResolveFunc) ResolveDefaultChatID ¶
func (f TelegramDefaultChatIDResolveFunc) ResolveDefaultChatID(ctx context.Context) (string, error)
type TelegramSendFunc ¶
type TelegramSendFunc func(ctx context.Context, req TelegramSendRequest) (TelegramSendResult, error)
func (TelegramSendFunc) Send ¶
func (f TelegramSendFunc) Send(ctx context.Context, req TelegramSendRequest) (TelegramSendResult, error)
type TelegramSendRequest ¶
type TelegramSendResult ¶
type TelegramSender ¶
type TelegramSender interface {
Send(ctx context.Context, req TelegramSendRequest) (TelegramSendResult, error)
}
type Tool ¶
type Tool struct {
Name string
Description string
Parameters json.RawMessage
Execute func(ctx context.Context, params json.RawMessage) (Result, error)
}
func NewAgentsListTool ¶
func NewApplyPatchTool ¶
func NewCronCreateTool ¶
func NewCronDeleteTool ¶
func NewCronGetTool ¶
func NewCronListTool ¶
func NewCronRunTool ¶
func NewCronRunsTool ¶
func NewCronTool ¶
func NewCronUpdateTool ¶
func NewEditFileTool ¶
func NewEditTool ¶
func NewExecTool ¶
func NewExecToolWithManager ¶
func NewExecToolWithManager(workspaceDir string, manager *ProcessManager) Tool
func NewGlobTool ¶
func NewHeartbeatRunOnceTool ¶
func NewHeartbeatRunOnceTool(runOnce func(ctx context.Context) (HeartbeatRunResult, error)) Tool
func NewHeartbeatStatusTool ¶
func NewHeartbeatStatusTool(getStatus func(ctx context.Context) (HeartbeatStatus, error)) Tool
func NewHeartbeatTool ¶
func NewHeartbeatTool( getStatus func(ctx context.Context) (HeartbeatStatus, error), runOnce func(ctx context.Context) (HeartbeatRunResult, error), ) Tool
func NewListDirTool ¶
func NewMemoryGetTool ¶
func NewMemorySaveTool ¶
func NewMemorySearchTool ¶
func NewOpsCleanupApplyTool ¶
func NewOpsCleanupPlanTool ¶
func NewOpsStatusTool ¶
func NewProcessTool ¶
func NewProcessTool(manager *ProcessManager) Tool
func NewProjectActivateTool ¶
func NewProjectActivityAppendTool ¶ added in v0.4.0
func NewProjectActivityGetTool ¶ added in v0.4.0
func NewProjectAutopilotStartTool ¶ added in v0.4.0
func NewProjectAutopilotStartTool(manager projectAutopilotStarter) Tool
func NewProjectBoardGetTool ¶ added in v0.4.0
func NewProjectBoardUpdateTool ¶ added in v0.4.0
func NewProjectBriefGetTool ¶
func NewProjectCreateTool ¶
func NewProjectDeleteTool ¶
func NewProjectDispatchTool ¶ added in v0.4.0
func NewProjectDispatchTool(store *project.Store, runner project.TaskRunner, checker project.GitHubAuthChecker) Tool
func NewProjectGetTool ¶
func NewProjectListTool ¶
func NewProjectStateGetTool ¶
func NewProjectUpdateTool ¶
func NewReadFileTool ¶
func NewReadTool ¶
func NewResearchReportTool ¶
func NewScheduleCompleteTool ¶
func NewScheduleCreateTool ¶
func NewScheduleDeleteTool ¶
func NewScheduleListTool ¶
func NewScheduleUpdateTool ¶
func NewSessionStatusTool ¶
func NewSessionStatusTool(getStatus func(ctx context.Context) (SessionStatus, error)) Tool
func NewSessionsHistoryTool ¶
func NewSessionsListTool ¶
func NewSessionsRunsTool ¶
func NewSessionsSendTool ¶
func NewSessionsSpawnTool ¶
func NewTelegramSendTool ¶
func NewTelegramSendTool(sender TelegramSender, enabled bool, resolver TelegramDefaultChatIDResolver) Tool
func NewUsageReportTool ¶
func NewWebFetchTool ¶
func NewWebFetchToolWithOptions ¶
func NewWebFetchToolWithOptions(opts WebFetchOptions) Tool
func NewWebSearchTool ¶
func NewWebSearchToolWithOptions ¶
func NewWebSearchToolWithOptions(opts WebSearchOptions) Tool
func NewWriteFileTool ¶
func NewWriteTool ¶
type WebFetchOptions ¶
Source Files
¶
- apply_patch.go
- automation.go
- automation_cron.go
- automation_heartbeat.go
- bounds.go
- edit_file.go
- exec.go
- glob.go
- list_dir.go
- memory_get.go
- memory_save.go
- memory_search.go
- process.go
- process_manager.go
- prompt_validation.go
- read_file.go
- session_status.go
- tool.go
- tool_gateway.go
- tool_name.go
- tool_ops.go
- tool_project.go
- tool_project_brief_state.go
- tool_project_runtime.go
- tool_research.go
- tool_schedule.go
- tool_sessions.go
- tool_telegram.go
- tool_usage.go
- web_fetch.go
- web_search.go
- workspace_path.go
- write_file.go
Click to show internal directories.
Click to hide internal directories.