openrouter

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentName     = "runnerOpenRouter"
	FinishedEventType = "runnerOpenRouter.finished"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenRouterTask

type OpenRouterTask struct {
	Commands []runner.TaskCommand
	Files    []runner.TaskFile
}

OpenRouterTask is the ordered runner commands and task files for a run.

func ApplyPlanningFollowUp

func ApplyPlanningFollowUp(task OpenRouterTask, environment []runner.TaskEnvironmentVariable, spec RunOpenRouterSpec) OpenRouterTask

func BuildBrokerTask

func BuildBrokerTask(spec RunOpenRouterSpec, usage string, setups []runner.IntegrationSetup) OpenRouterTask

func BuildDispatchedBrokerTask

func BuildDispatchedBrokerTask(spec RunOpenRouterSpec, usage string, setups []runner.IntegrationSetup, dispatched []runner.AgentStep, attachments []runner.TaskAttachment, inspectImages bool) OpenRouterTask

type RunOpenRouter

type RunOpenRouter struct{}

func (*RunOpenRouter) Cancel

func (c *RunOpenRouter) Cancel(ctx core.ExecutionContext) error

func (*RunOpenRouter) Cleanup

func (c *RunOpenRouter) Cleanup(ctx core.SetupContext) error

func (*RunOpenRouter) Color

func (c *RunOpenRouter) Color() string

func (*RunOpenRouter) Configuration

func (c *RunOpenRouter) Configuration() []configuration.Field

func (*RunOpenRouter) Description

func (c *RunOpenRouter) Description() string

func (*RunOpenRouter) Documentation

func (c *RunOpenRouter) Documentation() string

func (*RunOpenRouter) ExampleOutput

func (c *RunOpenRouter) ExampleOutput() map[string]any

func (*RunOpenRouter) Execute

func (c *RunOpenRouter) Execute(ctx core.ExecutionContext) error

func (*RunOpenRouter) HandleHook

func (c *RunOpenRouter) HandleHook(ctx core.ActionHookContext) error

func (*RunOpenRouter) HandleWebhook

func (*RunOpenRouter) Hooks

func (c *RunOpenRouter) Hooks() []core.Hook

func (*RunOpenRouter) Icon

func (c *RunOpenRouter) Icon() string

func (*RunOpenRouter) Label

func (c *RunOpenRouter) Label() string

func (*RunOpenRouter) Name

func (c *RunOpenRouter) Name() string

func (*RunOpenRouter) OutputChannels

func (c *RunOpenRouter) OutputChannels(configuration any) []core.OutputChannel

func (*RunOpenRouter) Setup

func (c *RunOpenRouter) Setup(ctx core.SetupContext) error

func (*RunOpenRouter) ValidateNodeConfiguration

func (c *RunOpenRouter) ValidateNodeConfiguration(config map[string]any) error

type RunOpenRouterSpec

type RunOpenRouterSpec struct {
	MachineType             string                        `mapstructure:"machineType"`
	Steps                   []runner.AgentStep            `mapstructure:"steps"`
	Credentials             runner.AgentCredentials       `mapstructure:"credentials"`
	Model                   string                        `mapstructure:"model"`
	ThinkingLevel           string                        `mapstructure:"thinkingLevel"`
	WorkingDirectory        string                        `mapstructure:"workingDirectory"`
	EnvironmentFrom         []runner.EnvironmentFromEntry `mapstructure:"environmentFrom"`
	Environment             []runner.EnvironmentVariable  `mapstructure:"environment"`
	ExecutionTimeoutSeconds int                           `mapstructure:"executionTimeoutSeconds"`
	IncludeVisualEvidence   bool                          `mapstructure:"includeVisualEvidence"`
	// MaxTurns is kept so old node JSON still decodes. OpenCode does not
	// take a turn cap; the wrapper ignores this value.
	MaxTurns int `mapstructure:"maxTurns"`
}

Jump to

Keyboard shortcuts

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