package
0.1.8
Repository: https://github.com/casualjim/bubo.git
Documentation: pkg.go.dev

# Functions

Audio creates a new AudioContentPart with the provided raw audio data and format.
CallTool creates a new ToolCallData instance with the given name and arguments.
Image creates a new ImageContentPart with the given URL.
New creates a new messageBuilder instance with the current timestamp.
Refusal creates a new RefusalContentPart with the given reason.
Text creates a new TextContentPart with the given text.

# Structs

AssistantContentOrParts represents content that can be either a simple string or a collection of assistant-specific content parts (text or refusal).
AssistantMessage represents a response from the assistant.
AudioContentPart represents an audio content part.
ContentOrParts represents either a simple string content or a collection of content parts.
ImageContentPart represents an image content part with a URL.
InputAudio contains the data and format information for audio content.
InstructionsMessage represents system-level instructions.
Message is a generic container for all message types in the system.
RefusalContentPart represents a content part indicating a refusal message.
Retry represents a failed tool execution that may need to be retried.
TextContentPart represents a text-only content part.
ToolCallData contains the information needed to execute a tool.
ToolCallMessage represents a request to execute one or more tools.
ToolResponse represents the successful result of a tool execution.
UserMessage represents a message from a user.

# Interfaces

AssistantContentPart is an interface that marks structs as valid assistant content parts.
ContentPart is an interface that marks structs as valid content parts.
ModelMessage is a marker interface that all message types must implement.
Request is a marker interface that identifies messages that can be used as requests in the system.
Response is a marker interface that identifies messages that can be used as responses in the system.