Documentation
¶
Overview ¶
Package export provides HTML export functionality for cagent sessions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(data SessionData) (string, error)
Generate creates an HTML string from the session data.
func SessionToFile ¶
SessionToFile exports a session to an HTML file. If filename is empty, a default name based on the title and timestamp is used. Returns the absolute path of the created file.
Types ¶
type Message ¶
type Message struct {
Role chat.MessageRole
Content string
ReasoningContent string
ToolCallID string
ToolCalls []ToolCall
AgentName string
Implicit bool
}
Message represents a single message in the session.
Click to show internal directories.
Click to hide internal directories.