Documentation
¶
Index ¶
- func NewCachedDialer(client *Client, logger *slog.Logger) appmcp.Dialer
- type Client
- type Session
- func (s *Session) CallTool(ctx context.Context, name string, arguments json.RawMessage) (json.RawMessage, error)
- func (s *Session) Close(context.Context)
- func (s *Session) GetPrompt(ctx context.Context, name string, arguments map[string]string) (json.RawMessage, error)
- func (s *Session) ListPrompts(ctx context.Context) ([]appmcp.Prompt, error)
- func (s *Session) ListResourceTemplates(ctx context.Context) ([]appmcp.ResourceTemplate, error)
- func (s *Session) ListResources(ctx context.Context) ([]appmcp.Resource, error)
- func (s *Session) ListTools(ctx context.Context) ([]appmcp.Tool, error)
- func (s *Session) Ping(ctx context.Context) error
- func (s *Session) ReadResource(ctx context.Context, uri string) (json.RawMessage, error)
- func (s *Session) SupportsPrompts() bool
- func (s *Session) SupportsResources() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) CallTool ¶
func (s *Session) CallTool(ctx context.Context, name string, arguments json.RawMessage) (json.RawMessage, error)
func (*Session) ListPrompts ¶
func (*Session) ListResourceTemplates ¶
func (*Session) ListResources ¶
func (*Session) ReadResource ¶
func (*Session) SupportsPrompts ¶
func (*Session) SupportsResources ¶
Click to show internal directories.
Click to hide internal directories.