Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Content ¶
type Content struct {
Message uuid.UUID `json:"-"`
// Actual content
Channel string `json:"channel,omitempty"`
Code string `json:"code,omitempty"` // stream data
Text string `json:"text,omitempty"` // stream data
Data *Data `json:"data,omitempty"`
// Result
Status string `json:"status"`
ExecutionCount int `json:"execution_count"`
Timestamp time.Time `json:"date"`
// Metadata
Metadata map[string]any `json:"metadata"`
Transient map[string]any `json:"transient"`
Error *Error `json:"-"`
}
type Data ¶
type Data struct {
Plaintext string `json:"text/plain"`
Markdown string `json:"text/markdown"`
Latex string `json:"text/latex"`
JS string `json:"application/javascript"`
JSON string `json:"application/json"`
HTML string `json:"text/html"`
PNG String64 `json:"image/png"`
JPG String64 `json:"image/jpeg"`
SVG String64 `json:"image/svg+xml"`
}
type Error ¶
type Kernel ¶
type Kernel struct {
ID uuid.UUID
Name string
Session string
User string
Status string
KeepAlive time.Duration
Client *api.Client
URL *url.URL
// contains filtered or unexported fields
}
type Message ¶
type Message struct {
Header *Header `json:"header"`
ParentHeader *Header `json:"parent_header"`
Channel string `json:"channel"`
ID string `json:"msg_id"`
Type string `json:"msg_type"`
Content json.RawMessage `json:"content"`
Metadata map[string]any `json:"metadata"`
Buffers []any `json:"buffers"`
}
Click to show internal directories.
Click to hide internal directories.