Documentation
¶
Index ¶
- Constants
- type OpenRouterTask
- func ApplyPlanningFollowUp(task OpenRouterTask, environment []runner.TaskEnvironmentVariable, ...) OpenRouterTask
- func BuildBrokerTask(spec RunOpenRouterSpec, usage string, setups []runner.IntegrationSetup) OpenRouterTask
- func BuildDispatchedBrokerTask(spec RunOpenRouterSpec, usage string, setups []runner.IntegrationSetup, ...) OpenRouterTask
- type RunOpenRouter
- func (c *RunOpenRouter) Cancel(ctx core.ExecutionContext) error
- func (c *RunOpenRouter) Cleanup(ctx core.SetupContext) error
- func (c *RunOpenRouter) Color() string
- func (c *RunOpenRouter) Configuration() []configuration.Field
- func (c *RunOpenRouter) Description() string
- func (c *RunOpenRouter) Documentation() string
- func (c *RunOpenRouter) ExampleOutput() map[string]any
- func (c *RunOpenRouter) Execute(ctx core.ExecutionContext) error
- func (c *RunOpenRouter) HandleHook(ctx core.ActionHookContext) error
- func (c *RunOpenRouter) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
- func (c *RunOpenRouter) Hooks() []core.Hook
- func (c *RunOpenRouter) Icon() string
- func (c *RunOpenRouter) Label() string
- func (c *RunOpenRouter) Name() string
- func (c *RunOpenRouter) OutputChannels(configuration any) []core.OutputChannel
- func (c *RunOpenRouter) Setup(ctx core.SetupContext) error
- func (c *RunOpenRouter) ValidateNodeConfiguration(config map[string]any) error
- type RunOpenRouterSpec
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 (c *RunOpenRouter) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)
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"`
}
Click to show internal directories.
Click to hide internal directories.