Documentation
¶
Index ¶
- type OpenAILLM
- func (llm *OpenAILLM) AttachTools(mcpServers map[string]*mcp.MCPServer, includeTools, excludeTools []string) error
- func (llm OpenAILLM) Generate(message string) ([]mcp_tool.Content, error)
- func (llm OpenAILLM) GetModel(name string) (any, error)
- func (llm *OpenAILLM) Initialize() error
- func (llm OpenAILLM) ListModels() (any, error)
- func (llm OpenAILLM) Structured(message string, reponseStruct any) ([]mcp_tool.Content, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAILLM ¶
type OpenAILLM struct { Ctx context.Context Client openai.Client Provider string Tools []openai.ChatCompletionToolParam ModelName string Model *openai.Model Instructions string Effort string Logger *slog.Logger Memory *memory.Memory ToolsServers map[string]*mcp.MCPServer RequestParams *providers.RequestParams }
func NewOpenAILLM ¶
func NewOpenAILLM(ctx context.Context, modelName, effort, instructions string, req *providers.RequestParams, config *config.AgentsConfig) (*OpenAILLM, error)
func (*OpenAILLM) AttachTools ¶
func (*OpenAILLM) Initialize ¶
func (OpenAILLM) ListModels ¶
Click to show internal directories.
Click to hide internal directories.