api

package
v0.0.0-...-738f650 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL