Documentation
¶
Index ¶
- Constants
- func CredentialPaths() []string
- type Runtime
- func (r *Runtime) Available(ctx context.Context) externalagents.Availability
- func (r *Runtime) Close() error
- func (r *Runtime) DisplayName() string
- func (r *Runtime) ID() string
- func (r *Runtime) Interrupt(context.Context, externalagents.ExternalSession) error
- func (r *Runtime) Models(context.Context) []string
- func (r *Runtime) ResumeSession(_ context.Context, session externalagents.ExternalSession) (externalagents.ExternalSession, error)
- func (r *Runtime) Send(ctx context.Context, session externalagents.ExternalSession, ...) (<-chan externalagents.Event, error)
- func (r *Runtime) StartSession(_ context.Context, req externalagents.StartSessionRequest) (externalagents.ExternalSession, error)
- type RuntimeOptions
Constants ¶
View Source
const AgentID = "claude-code"
Variables ¶
This section is empty.
Functions ¶
func CredentialPaths ¶ added in v0.2.1
func CredentialPaths() []string
CredentialPaths is where the Claude Code CLI keeps its login.
Types ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime(opts RuntimeOptions) *Runtime
func (*Runtime) Available ¶ added in v0.2.0
func (r *Runtime) Available(ctx context.Context) externalagents.Availability
func (*Runtime) DisplayName ¶ added in v0.2.0
func (*Runtime) Interrupt ¶
func (r *Runtime) Interrupt(context.Context, externalagents.ExternalSession) error
Interrupt has nothing to do: canceling the turn's context kills the CLI.
func (*Runtime) ResumeSession ¶
func (r *Runtime) ResumeSession(_ context.Context, session externalagents.ExternalSession) (externalagents.ExternalSession, error)
func (*Runtime) Send ¶
func (r *Runtime) Send(ctx context.Context, session externalagents.ExternalSession, input externalagents.Input) (<-chan externalagents.Event, error)
func (*Runtime) StartSession ¶
func (r *Runtime) StartSession(_ context.Context, req externalagents.StartSessionRequest) (externalagents.ExternalSession, error)
Click to show internal directories.
Click to hide internal directories.