Documentation
¶
Overview ¶
Package hostedtool provides definitions for hosted tools.
Hosted tools do not themselves implement functionality. They are markers that can be used to inform a service that the service is allowed to perform certain actions if the service is capable of doing so.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeInterpreter ¶
CodeInterpreter represents a hosted tool that can be specified to an AI service to enable it to execute code it generates.
func (*CodeInterpreter) Description ¶
func (t *CodeInterpreter) Description() string
func (*CodeInterpreter) Name ¶
func (t *CodeInterpreter) Name() string
type FileSearch ¶
type FileSearch struct {
AdditionalProperties map[string]any
Inputs []message.Content
MaximumResultCount int
}
FileSearch represents a hosted tool that can be specified to an AI service to enable it to perform file search operations.
func (*FileSearch) Description ¶
func (t *FileSearch) Description() string
func (*FileSearch) Name ¶
func (t *FileSearch) Name() string
type MCPServer ¶
type MCPServer struct {
// AdditionalProperties holds provider-specific properties that are not
// represented by the other fields.
AdditionalProperties map[string]any
// ServerName is the name used to identify the MCP server.
ServerName string
// ServerDescription is an optional human-readable description of the MCP server.
ServerDescription string
// ServerAddress is the URL of the remote MCP server.
ServerAddress string
// Authorization is an optional authorization token used when connecting to the MCP server.
Authorization string
// AllowedTools optionally restricts the set of tools that may be invoked on the MCP server.
AllowedTools []string
// Headers contains optional HTTP headers to send when connecting to the MCP server.
Headers map[string]string
}
MCPServer represents a hosted tool that can be specified to an AI service to enable it to invoke tools exposed by a remote MCP server.
func (*MCPServer) Description ¶
type WebSearch ¶
WebSearch represents a hosted tool that can be specified to an AI service to enable it to perform web searches.