execution

package
v1.31.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	// Submit enqueues a task for execution.
	Submit(ctx context.Context, req *Request) error

	// Start starts the execution consumer (worker/poller).
	Start(ctx context.Context) error

	// Stop stops the execution consumer.
	Stop() error
}

Provider defines the interface for task execution backends. Implementations can be local (Native) or remote (Temporal, etc).

type Request

type Request struct {
	// ID is the unique identifier for this execution request.
	// This usually maps to the Task ID.
	ID string

	// AppID identifies the tenant/app.
	AppID string

	// AgentName is the name of the agent to invoke.
	AgentName string

	// Input is the user input or prompt.
	Input string

	// ContextID is the session/conversation ID.
	ContextID string

	// UserID is the user triggering the task.
	UserID string

	// Metadata contains arbitrary execution metadata.
	Metadata map[string]any

	// Priority affects execution order (higher = sooner).
	Priority int
}

Request represents a request to execute an agent task.

Directories

Path Synopsis
Package native provides the native execution provider implementation.
Package native provides the native execution provider implementation.

Jump to

Keyboard shortcuts

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