robby

package module
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2025 License: MIT Imports: 9 Imported by: 0

README ¶

Robby 🤖

Create an AI Agent with Docker Model Runner and Docker MCP Toolkit

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func ToolCallsToJSONString ¶

func ToolCallsToJSONString(tools []openai.ChatCompletionMessageToolCall) (string, error)

Types ¶

type Agent ¶

type Agent struct {
	Params openai.ChatCompletionNewParams

	Tools     []openai.ChatCompletionToolParam
	ToolCalls []openai.ChatCompletionMessageToolCall
	// contains filtered or unexported fields
}

func NewAgent ¶

func NewAgent(options ...AgentOption) (*Agent, error)

func (*Agent) ChatCompletion ¶

func (agent *Agent) ChatCompletion() (string, error)

func (*Agent) ChatCompletionStream ¶

func (agent *Agent) ChatCompletionStream(callBack func(self *Agent, content string, err error) error) (string, error)

func (*Agent) ExecuteMCPToolCalls ¶

func (agent *Agent) ExecuteMCPToolCalls() ([]string, error)

func (*Agent) ExecuteToolCalls ¶

func (agent *Agent) ExecuteToolCalls(toolsImpl map[string]func(any) (any, error)) ([]string, error)

func (*Agent) ToolsCompletion ¶

func (agent *Agent) ToolsCompletion() ([]openai.ChatCompletionMessageToolCall, error)

type AgentOption ¶

type AgentOption func(*Agent)

func WithDMRClient ¶

func WithDMRClient(ctx context.Context, baseURL string) AgentOption

func WithMCPClient ¶

func WithMCPClient(command STDIOCommandOption) AgentOption

func WithMCPTools ¶

func WithMCPTools(tools []string) AgentOption

type STDIOCommandOption ¶

type STDIOCommandOption []string

func WithDockerMCPToolkit ¶

func WithDockerMCPToolkit() STDIOCommandOption

func WithSocatMCPToolkit ¶

func WithSocatMCPToolkit() STDIOCommandOption

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL