claude

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package claude provides an Executor implementation for Claude Code CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register registers the Claude executor with the global factory

Types

type ClaudeExecutor

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

ClaudeExecutor executes tasks using Claude Code CLI

func New

func New(cfg *executor.Config) (*ClaudeExecutor, error)

New creates a new ClaudeExecutor

func (*ClaudeExecutor) Capabilities

func (e *ClaudeExecutor) Capabilities() []executor.Capability

Capabilities returns the list of features this executor supports

func (*ClaudeExecutor) Close

func (e *ClaudeExecutor) Close() error

Close releases any resources held by the executor

func (*ClaudeExecutor) CostModel

func (e *ClaudeExecutor) CostModel() *executor.CostModel

CostModel returns pricing information for cost calculations

func (*ClaudeExecutor) Execute

func (e *ClaudeExecutor) Execute(ctx context.Context, task *executor.Task) (*executor.Result, error)

Execute runs a task and returns the result

func (*ClaudeExecutor) ExecuteStreaming

func (e *ClaudeExecutor) ExecuteStreaming(ctx context.Context, task *executor.Task, handler executor.EventHandler) (*executor.Result, error)

ExecuteStreaming runs a task with real-time event callbacks

func (*ClaudeExecutor) HealthCheck

func (e *ClaudeExecutor) HealthCheck(ctx context.Context) error

HealthCheck verifies the executor is configured and accessible

func (*ClaudeExecutor) Name

func (e *ClaudeExecutor) Name() string

Name returns the executor identifier

Jump to

Keyboard shortcuts

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