Documentation
¶
Index ¶
- func NewAssistant(_ struct{}, _ struct{}) (capsdelivery.Assistant, 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 NewAssistant ¶ added in v0.3.33
func NewAssistant(_ struct{}, _ struct{}) (capsdelivery.Assistant, error)
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.
Click to show internal directories.
Click to hide internal directories.