Documentation
¶
Index ¶
- func Enabled() bool
- func LogLLMRequest(model string, messageCount int, toolCount int, messages []map[string]string)
- func LogLLMResponse(model string, content string, toolCalls []string, finishReason string)
- func LogToFile(category, event string, data map[string]interface{})
- func LogToolCall(toolName, opID, status string, resultLen int, resultHead string, err string)
- func Path() string
- func PayloadDir() string
- func SummarizeMessages(messages []llm.Message) []map[string]any
- func SummarizeMessagesForLog(messages interface{}) []map[string]string
- func SummarizeToolCalls(calls []llm.ToolCall) []map[string]any
- func Write(component, event string, fields map[string]any)
- func WritePayload(prefix, messageID string, body []byte) string
- type Record
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogLLMRequest ¶
LogLLMRequest logs a summary of the LLM request to the debug file.
func LogLLMResponse ¶
LogLLMResponse logs a summary of the LLM response.
func LogToFile ¶
LogToFile writes a structured debug entry to /tmp/agently-debug.log. Safe to call concurrently. No-op if the file can't be opened.
func LogToolCall ¶
LogToolCall logs a tool call execution result.
func PayloadDir ¶
func PayloadDir() string
func SummarizeMessagesForLog ¶
SummarizeMessagesForLog creates a compact summary of LLM messages.
func WritePayload ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.