decider

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decider

type Decider struct {
	// contains filtered or unexported fields
}

Decider selects the optimal strategy and generates the concrete next action.

func NewDecider

func NewDecider(logger *zap.Logger, bus *bus.EvolutionBus, llmClient schemas.LLMClient) *Decider

NewDecider initializes the Decider component and subscribes to the bus.

func (*Decider) Start

func (d *Decider) Start(ctx context.Context)

type LLMActionResponse

type LLMActionResponse struct {
	Rationale   string                 `json:"rationale"`
	ActionType  models.ActionType      `json:"action_type"`
	Description string                 `json:"description"`
	Payload     map[string]interface{} `json:"payload"`
}

LLMActionResponse defines the expected JSON structure from the LLM when asked to generate an action.

Jump to

Keyboard shortcuts

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