delivery

package
v0.3.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeSessionID

func NormalizeSessionID(ctx context.Context, raw string) agentkit.SessionID

NormalizeSessionID maps slash-style targets to delivery session ids. Bare ids without ":" are qualified with the inbox platform from context.

func OutboundRoute

func OutboundRoute(platform string, deliveryID agentkit.SessionID) agentkit.RouteRef

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

func ResolveRoute(ctx context.Context, input delivery.RouteInput) (delivery.Route, error)

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

func SendProactiveInboxText(ctx context.Context, sender capsdelivery.Sender, text string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL