Documentation
¶
Index ¶
- Constants
- func NewToolServer(runtime ToolRuntime) *sdk.Server
- func ResultContent(result *sdk.CallToolResult) string
- func RunStdioServer(ctx context.Context, runtime ToolRuntime) error
- func SanitizeToolPart(value string) string
- func ToolID(prefix string, remoteName string) string
- type ClientModule
- type Config
- type ServerConfig
- type ToolRuntime
Constants ¶
View Source
const ( TransportStdio = "stdio" TransportHTTP = "http" )
Variables ¶
This section is empty.
Functions ¶
func NewToolServer ¶
func NewToolServer(runtime ToolRuntime) *sdk.Server
func ResultContent ¶
func ResultContent(result *sdk.CallToolResult) string
func RunStdioServer ¶
func RunStdioServer(ctx context.Context, runtime ToolRuntime) error
func SanitizeToolPart ¶
Types ¶
type ClientModule ¶
type ClientModule struct {
// contains filtered or unexported fields
}
func NewClientModule ¶
func NewClientModule(ctx context.Context, cfg Config) (*ClientModule, error)
func (*ClientModule) Close ¶
func (m *ClientModule) Close() error
func (*ClientModule) Context ¶
func (m *ClientModule) Context() string
func (*ClientModule) RegisterTools ¶
func (m *ClientModule) RegisterTools(registry *tools.Registry) error
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.