pkg

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidSessionID = errors.New("invalid session_id format")

Functions

func BuildUserMessage added in v1.9.1

func BuildUserMessage(content, text string, baseParts []types.MessagePart, attachments []UserAttachment) types.Message

func MarkPendingUserEcho

func MarkPendingUserEcho(sessionID string, msg types.Message)

func SchedulerToolsForSession

func SchedulerToolsForSession(svc *scheduler.Service, chatSessionID string) []types.Tool

func TakePendingUserEchoMatch

func TakePendingUserEchoMatch(sessionID, content string) bool

func ValidateSessionID added in v1.9.1

func ValidateSessionID(sessionID string) error

Types

type UserAttachment added in v1.9.1

type UserAttachment struct {
	Type          string `json:"type"`
	MIMEType      string `json:"mime_type,omitempty"`
	Name          string `json:"name,omitempty"`
	Content       string `json:"content"`
	ContentFormat string `json:"content_format,omitempty"`
}

Jump to

Keyboard shortcuts

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