Versions in this module Expand all Collapse all v0 v0.0.1 Jan 8, 2025 Changes in this version + type Host struct + func NewHost() *Host + func (h *Host) Close() error + func (h *Host) Execute(ctx context.Context, c *execx.Cmd) (*ToolProcess, error) + func (h *Host) Get(f *openai.ChatCompletionMessageToolCallFunction) (tool.Handler, error) + func (h *Host) Tools() []openai.ChatCompletionToolParam + type HostedToolHandler struct + func (h *HostedToolHandler) Execute(ctx context.Context) (any, error) + type ToolProcess struct + Info *ToolProcessInfo + Tools map[string]openai.ChatCompletionToolParam + func (p *ToolProcess) Pid() int + func (p *ToolProcess) Post(req *provider.ToolRequest) (*provider.ToolResponse, error) + func (p *ToolProcess) Terminate(status ToolStatus, message string) + func (p *ToolProcess) Wait() ToolStatus + type ToolProcessInfo struct + Status ToolStatus + StatusMessage string + type ToolStatus int + const TsCompleted + const TsFailed + const TsInitializing + const TsRunning + func (s ToolStatus) String() string