Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioData ¶
type AudioData struct { EventType AudioDataEvent ByteData []byte Format string Length time.Duration Text string // text representation Trace Trace }
AudioData TODO: This should grow up into a more realistic Event like Twilio or Vocode has i.e. distinguish inbound/outbound pipelines; hierarchy of Conversation -> Message -> Event and more event types like Silence / Interrupt / Stop / Finished.
func NewAudioDataSubmit ¶
type AudioDataEvent ¶
type AudioDataEvent int
const ( AudioInput AudioDataEvent = iota AudioOutput SubmitPrompt )
Declare constants with the custom type. These are your enum values.
type Conversation ¶
Conversation for the Chat API TODO: We can stop using it once the Assistant API supports streaming
func NewConversationSimple ¶
func NewConversationSimple(text string) Conversation
func (*Conversation) Add ¶
func (c *Conversation) Add(role string, content string)
func (*Conversation) DebugLog ¶
func (c *Conversation) DebugLog()
func (*Conversation) GetLastPrompt ¶
func (c *Conversation) GetLastPrompt() string
Click to show internal directories.
Click to hide internal directories.