Documentation
¶
Overview ¶
Package message owns provider-neutral immutable conversation values.
@import { NamedInterface } from "github.com/spice-framework/spice/annotation/modulith" @NamedInterface("message")
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
Message is one validated immutable conversation entry.
type Part ¶
type Part struct {
// contains filtered or unexported fields
}
Part is an immutable bounded content part.
func Extension ¶
func Extension(namespace string, value json.RawMessage) (Part, error)
Extension constructs a namespaced JSON extension part.
func ToolCall ¶
func ToolCall(callID, name string, arguments json.RawMessage) (Part, error)
ToolCall constructs a model-requested tool call part.
func ToolResult ¶
func ToolResult(callID, name string, result json.RawMessage) (Part, error)
ToolResult constructs a tool result part associated with a call name.
func (Part) Data ¶
func (part Part) Data() json.RawMessage
Data returns a defensive copy of structured JSON content.
Click to show internal directories.
Click to hide internal directories.