Documentation
¶
Index ¶
- func NormalizeSessionID(ctx context.Context, raw string) agentkit.SessionID
- func OutboundRoute(platform string, deliveryID agentkit.SessionID) agentkit.RouteRef
- func OutboundRouteID(event agentkit.OutboundEvent) agentkit.SessionID
- func ResolveRoute(ctx context.Context, input delivery.RouteInput) (delivery.Route, error)
- func SendAssistantMessage(ctx context.Context, sender capsdelivery.Sender, parts []agentkit.ContentPart, ...) error
- func SendAssistantText(ctx context.Context, sender capsdelivery.Sender, text string, ...) error
- func SendProactiveInboxText(ctx context.Context, sender capsdelivery.Sender, text string) error
- type AssistantMessageOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeSessionID ¶
NormalizeSessionID maps slash-style targets to delivery session ids. Bare ids without ":" are qualified with the inbox platform from context.
func OutboundRoute ¶
OutboundRoute builds a session-kind route for proactive delivery.
func OutboundRouteID ¶
func OutboundRouteID(event agentkit.OutboundEvent) agentkit.SessionID
OutboundRouteID returns the platform routing target for an outbound event.
func ResolveRoute ¶
ResolveRoute resolves the delivery session and platform from context.
func SendAssistantMessage ¶ added in v0.3.14
func SendAssistantMessage(ctx context.Context, sender capsdelivery.Sender, parts []agentkit.ContentPart, opts AssistantMessageOptions) error
SendAssistantMessage delivers a user-visible assistant message on the resolved route.
func SendAssistantText ¶ added in v0.3.14
func SendAssistantText(ctx context.Context, sender capsdelivery.Sender, text string, opts AssistantMessageOptions) error
SendAssistantText delivers a single text assistant line (no-op when text is empty).
func SendProactiveInboxText ¶ added in v0.3.14
SendProactiveInboxText delivers raw assistant text on the current inbox route (emit when wired).
Types ¶
type AssistantMessageOptions ¶ added in v0.3.14
type AssistantMessageOptions struct {
Route capsdelivery.RouteInput
// Raw skips platform markdown conversion when the transport supports it.
Raw bool
// UseContextEmit delivers through the per-turn OutboundEmit hook when the route
// is the current inbox (empty SessionID and UserID).
UseContextEmit bool
}
AssistantMessageOptions configures proactive assistant outbound delivery.