Documentation
¶
Index ¶
Constants ¶
View Source
const ( ToolsProviderName = "shell_session" ToolRun = "shell_session_run" ToolRead = "shell_session_read" )
Variables ¶
This section is empty.
Functions ¶
func NewTools ¶
func NewTools(mgr Manager) taskengine.ToolsRepo
Types ¶
type Manager ¶
type Manager interface {
Run(ctx context.Context, sessionID, line string) (RunResult, error)
Read(sessionID string, since int64, tailBytes int) ReadResult
Subscribe(sessionID string, fn func(Chunk)) (cancel func())
Kill(sessionID string)
Shutdown()
}
func NewManager ¶
type ReadResult ¶
type ReadResultJSON ¶
Click to show internal directories.
Click to hide internal directories.