session

package
v0.0.0-...-0239089 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(ctx context.Context, c <-chan any, llmModel llms.Model, mcpClients *client.Clients, conf *config.Config) error

Listen listens for incoming alerts and starts a new session for each one.

Types

type Session

type Session struct {
	ID string
	// contains filtered or unexported fields
}

Session represents an AI assistant session for processing a single alert.

func New

func New(alert any, llm llms.Model, mcpClients *client.Clients, maxToolCalls int, logDir string) (*Session, error)

New creates a new session for processing an alert.

func (*Session) Run

func (s *Session) Run(ctx context.Context)

Run starts the session and processes the alert.

Jump to

Keyboard shortcuts

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