hedra

package
v0.14.0 Latest Latest
Warning

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

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

Documentation

Overview

Package hedra implements engine.Engine for the Hedra character video API.

Character video generation is async: POST /v1/characters creates a project, then GET /v1/projects/{id} polls for completion. Auth: X-API-KEY header, env HEDRA_API_KEY.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigSchema

func ConfigSchema() []engine.ConfigField

ConfigSchema returns the configuration fields required by the Hedra engine.

func ModelsByCapability

func ModelsByCapability() map[string][]string

ModelsByCapability returns all known Hedra models grouped by capability.

Types

type Config

type Config struct {
	APIKey            string
	BaseURL           string
	HTTPClient        *http.Client
	WaitForCompletion bool
	PollInterval      time.Duration
	OnProgress        epoll.OnProgress
}

Config configures the Hedra engine.

type Engine

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

Engine implements engine.Engine for Hedra character video generation.

func New

func New(cfg Config) *Engine

New creates a Hedra engine instance.

func (*Engine) Capabilities

func (e *Engine) Capabilities() engine.Capability

Capabilities implements engine.Describer.

func (*Engine) Execute

func (e *Engine) Execute(ctx context.Context, g workflow.Graph) (engine.Result, error)

Execute generates a character video via the Hedra API.

func (*Engine) Resume

func (e *Engine) Resume(ctx context.Context, remoteID string) (engine.Result, error)

Resume implements engine.Resumer — resumes polling a previously submitted project.

Jump to

Keyboard shortcuts

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