Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHTTPServer ¶
func StartHTTPServer()
StartHTTPServer starts the HTTP API server for manual alert submission
Types ¶
type AgentTaskRequest ¶
type AgentTaskRequest struct {
Task string `json:"task"`
Page string `json:"page"`
// Lang is the user's interface language code (en/es/pt/…) so the agent
// replies in that language regardless of the message language.
Lang string `json:"lang"`
// History is prior chat turns from the client (text only). Only user and
// assistant roles are accepted; tool_use/tool_result turns are internal to
// a single Run() and must not be replayed.
History []AgentTurn `json:"history,omitempty"`
}
AgentTaskRequest is the body for the live operations endpoint. Page is a human-readable description of where the user currently is in the app (route + any focused entity), forwarded so the agent can pick tools and craft navigation.
type AgentTurn ¶
type AgentTurn struct {
Role string `json:"role"` // "user" | "assistant"
Content string `json:"content"`
}
AgentTurn is a single prior chat message forwarded by the client.
type AnalyzeRequest ¶
type AnalyzeRequest struct {
schema.AlertFields
}
AnalyzeRequest represents the request body for manual alert analysis
type AnalyzeResponse ¶
type AnalyzeResponse struct {
Status string `json:"status"`
AlertID string `json:"alertId,omitempty"`
Message string `json:"message,omitempty"`
}
AnalyzeResponse represents the response for the analyze endpoint