usecase

package
v0.0.0-...-c4ca558 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentExecutor

type AgentExecutor interface {
	Execute(ctx context.Context, req *entity.ExecuteRequest) (entity.RunStatus, error)
	GetStatus(ctx context.Context, runID string) (entity.RunStatus, error)
	Control(ctx context.Context, runID string, op entity.ControlOperation) error
}

AgentExecutor is the business interface for agent workflow execution.

type HistoryQuery

type HistoryQuery interface {
	ListMessages(ctx context.Context, runID string, limit, offset uint64) ([]entity.MessageRecord, error)
	ListToolResults(ctx context.Context, runID string, limit, offset uint64) ([]entity.ToolResultRecord, error)
}

HistoryQuery is the business interface for querying agent run history.

type OrchestrationExecutor

type OrchestrationExecutor interface {
	ExecuteOrchestration(ctx context.Context, input *entity.OrchestrationInput) (entity.RunStatus, error)
	GetOrchestrationStatus(ctx context.Context, runID string) (entity.RunStatus, error)
}

OrchestrationExecutor starts and manages orchestration workflows.

type StreamEventWriter

type StreamEventWriter interface {
	WriteEvent(ctx context.Context, event entity.StreamEvent) error
}

StreamEventWriter is the destination for streaming events. Implementations write to Redis Stream, channel, etc.

type StreamExecutor

type StreamExecutor interface {
	ExecuteStream(ctx context.Context, req *entity.StreamRequest, writer StreamEventWriter) error
}

StreamExecutor executes agent steps with streaming output.

type TemplateManager

type TemplateManager interface {
	Create(ctx context.Context, req *entity.CreateWorkflowTemplateRequest) (entity.WorkflowTemplate, error)
	CreateFromYAML(ctx context.Context, accountID string, yamlData []byte) (entity.WorkflowTemplate, error)
	Get(ctx context.Context, templateID string) (entity.WorkflowTemplate, error)
	Update(ctx context.Context, templateID string, req entity.UpdateWorkflowTemplateRequest) (entity.WorkflowTemplate, error)
	Delete(ctx context.Context, templateID string) error
	ListByAccount(ctx context.Context, accountID string) ([]entity.WorkflowTemplate, error)
}

TemplateManager manages workflow template CRUD and YAML import.

type ToolDefProvider

type ToolDefProvider interface {
	Definitions() []entity.ToolDef
}

ToolDefProvider supplies LLM function calling definitions for available tools. The agent usecase calls this to auto-populate tool definitions when none are explicitly provided in the request.

type TriggerEventHandler

type TriggerEventHandler interface {
	HandleEvent(ctx context.Context, eventSlug string, payload map[string]string) ([]entity.TriggerFireResult, error)
}

TriggerEventHandler processes incoming webhook events for event-type triggers.

Directories

Path Synopsis
Package billing provides use-case operations for credit management and cost calculation.
Package billing provides use-case operations for credit management and cost calculation.

Jump to

Keyboard shortcuts

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