comfydeploy

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package comfydeploy implements engine.Engine for the ComfyDeploy API.

Workflow execution is async: POST /run creates a run, then GET /run?run_id={id} polls for completion. Auth: Authorization: Bearer {token}, env COMFYDEPLOY_API_TOKEN.

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingDeploymentID = fmt.Errorf("comfydeploy: deployment ID is required")

Functions

func ConfigSchema

func ConfigSchema() []engine.ConfigField

ConfigSchema returns the configuration fields required by the ComfyDeploy engine.

func DefaultProvider added in v0.15.0

func DefaultProvider() engine.Provider

DefaultProvider returns preset engine configurations for comfydeploy.

func ModelInfos added in v0.16.0

func ModelInfos() []engine.ModelInfo

ModelInfos returns i18n metadata for the ComfyDeploy platform. ComfyDeploy models are hosted ComfyUI workflows; this registers a platform-level entry for discovery purposes.

func ModelsByCapability added in v0.14.0

func ModelsByCapability() map[string][]string

ModelsByCapability returns the models grouped by capability.

Types

type Config

type Config struct {
	APIToken          string
	BaseURL           string
	DeploymentID      string // required
	HTTPClient        *http.Client
	WaitForCompletion bool
	PollInterval      time.Duration
	Webhook           string // optional
	OnProgress        epoll.OnProgress
}

Config configures the ComfyDeploy engine.

type Engine

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

Engine implements engine.Engine for ComfyDeploy.

func New

func New(cfg Config) *Engine

New creates a ComfyDeploy 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 runs a workflow on ComfyDeploy.

func (*Engine) Resume

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

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

Jump to

Keyboard shortcuts

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