Documentation
¶
Overview ¶
Package upstream provides the upstream service implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Upstream ¶
type Upstream interface {
// Shutdown gracefully terminates the upstream service.
Shutdown(ctx context.Context) error
// Register inspects the upstream service defined by the serviceConfig,
// discovers its capabilities, and registers them.
//
// Parameters:
// - ctx: The context for the registration process.
// - serviceConfig: The configuration for the upstream service.
// - toolManager: The manager where discovered tools will be registered.
// - promptManager: The manager where discovered prompts will be registered.
// - resourceManager: The manager where discovered resources will be registered.
// - isReload: Indicates whether this is an initial registration or a reload.
//
// Returns:
// - A unique service key.
// - A list of discovered tool definitions.
// - A list of discovered resource definitions.
// - An error if registration fails.
Register(
ctx context.Context,
serviceConfig *configv1.UpstreamServiceConfig,
toolManager tool.ManagerInterface,
promptManager prompt.ManagerInterface,
resourceManager resource.ManagerInterface,
isReload bool,
) (string, []*configv1.ToolDefinition, []*configv1.ResourceDefinition, error)
}
Upstream defines the standard interface for all backend service integrations. Each implementation of this interface is responsible for discovering and registering its capabilities, such as tools, prompts, and resources, with the appropriate managers.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package command provides command execution functionality.
|
Package command provides command execution functionality. |
|
Package factory provides upstream factory functionality.
|
Package factory provides upstream factory functionality. |
|
Package graphql provides GraphQL upstream integration.
|
Package graphql provides GraphQL upstream integration. |
|
Package grpc provides gRPC upstream integration.
|
Package grpc provides gRPC upstream integration. |
|
protobufparser
Package protobufparser provides a parser for Protocol Buffers.
|
Package protobufparser provides a parser for Protocol Buffers. |
|
Package mcp provides MCP upstream integration.
|
Package mcp provides MCP upstream integration. |
|
Package openapi provides OpenAPI integration for the upstream service.
|
Package openapi provides OpenAPI integration for the upstream service. |
|
Package webrtc provides WebRTC upstream integration.
|
Package webrtc provides WebRTC upstream integration. |
|
Package websocket provides WebSocket upstream integration.
|
Package websocket provides WebSocket upstream integration. |
Click to show internal directories.
Click to hide internal directories.