Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BrowserProvider ¶
type BrowserProvider struct {
// contains filtered or unexported fields
}
BrowserProvider is the Tool provider Type "Web Browser".
func NewBrowserProvider ¶
func NewBrowserProvider(config ProviderConfig) (*BrowserProvider, error)
func (*BrowserProvider) BuiltinTools ¶
func (p *BrowserProvider) BuiltinTools() []builtin_tool.BuiltinTool
type OfficeProvider ¶
type OfficeProvider struct {
// contains filtered or unexported fields
}
OfficeProvider is the Tool provider Type "Office". It exposes read/write tools for Word (.docx), Excel (.xlsx), and PowerPoint (.pptx). SubType controls which tool(s) are exposed: "All" exposes all six; any specific SubType (e.g. "Word Read") exposes only that single tool.
func (*OfficeProvider) BuiltinTools ¶
func (p *OfficeProvider) BuiltinTools() []builtin_tool.BuiltinTool
type Provider ¶
type Provider interface {
BuiltinTools() []builtin_tool.BuiltinTool
}
Provider supplies LLM-callable tools (object.Provider category "Tool").
func NewProvider ¶
func NewProvider(config ProviderConfig, lang string) (Provider, error)
NewProvider instantiates a Tool provider implementation from category and type.
type ProviderConfig ¶
type ProviderConfig struct {
Category string
Type string
SubType string
ProviderUrl string
ClientId string
ClientSecret string
EnableProxy bool
}
ProviderConfig contains the Provider fields needed to construct builtin tools.
type ShellProvider ¶
type ShellProvider struct{}
ShellProvider is the Tool provider Type "Shell" (single ShellTool).
func (*ShellProvider) BuiltinTools ¶
func (p *ShellProvider) BuiltinTools() []builtin_tool.BuiltinTool
type TimeProvider ¶
type TimeProvider struct{}
TimeProvider is the Tool provider Type "Time" (single TimeTool).
func (*TimeProvider) BuiltinTools ¶
func (p *TimeProvider) BuiltinTools() []builtin_tool.BuiltinTool
type WebFetchProvider ¶
type WebFetchProvider struct {
// contains filtered or unexported fields
}
WebFetchProvider is the Tool provider Type "Web Fetch".
func NewWebFetchProvider ¶
func NewWebFetchProvider(config ProviderConfig) (*WebFetchProvider, error)
func (*WebFetchProvider) BuiltinTools ¶
func (p *WebFetchProvider) BuiltinTools() []builtin_tool.BuiltinTool
type WebSearchProvider ¶
type WebSearchProvider struct {
// contains filtered or unexported fields
}
WebSearchProvider is the Tool provider Type "WebSearch" (single web_search tool).
func NewWebSearchProvider ¶
func NewWebSearchProvider(config ProviderConfig) (*WebSearchProvider, error)
func (*WebSearchProvider) BuiltinTools ¶
func (p *WebSearchProvider) BuiltinTools() []builtin_tool.BuiltinTool