Documentation
¶
Overview ¶
Package omp implements the oh-my-pi agent harness. It spawns the bridge subprocess and manages JSON-line I/O.
Index ¶
- func ValidateReadiness(cfg config.OhMyPiConfig) error
- type OhMyPiHarness
- func (h *OhMyPiHarness) Capabilities() adapter.HarnessCapabilities
- func (h *OhMyPiHarness) Name() string
- func (h *OhMyPiHarness) RunAction(ctx context.Context, req adapter.HarnessActionRequest) (adapter.HarnessActionResult, error)
- func (h *OhMyPiHarness) StartSession(ctx context.Context, opts adapter.SessionOpts) (adapter.AgentSession, error)
- func (h *OhMyPiHarness) SupportsCompact() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateReadiness ¶
func ValidateReadiness(cfg config.OhMyPiConfig) error
ValidateReadiness verifies that the oh-my-pi bridge can run with the configured runtime prerequisites.
Types ¶
type OhMyPiHarness ¶
type OhMyPiHarness struct {
// contains filtered or unexported fields
}
OhMyPiHarness implements adapter.AgentHarness for oh-my-pi.
func NewHarness ¶
func NewHarness(cfg config.OhMyPiConfig, workspaceRoot string) *OhMyPiHarness
NewHarness creates a new oh-my-pi harness.
func (*OhMyPiHarness) Capabilities ¶
func (h *OhMyPiHarness) Capabilities() adapter.HarnessCapabilities
Capabilities returns the harness capabilities.
func (*OhMyPiHarness) Name ¶
func (h *OhMyPiHarness) Name() string
Name returns the harness identifier.
func (*OhMyPiHarness) RunAction ¶
func (h *OhMyPiHarness) RunAction(ctx context.Context, req adapter.HarnessActionRequest) (adapter.HarnessActionResult, error)
func (*OhMyPiHarness) StartSession ¶
func (h *OhMyPiHarness) StartSession(ctx context.Context, opts adapter.SessionOpts) (adapter.AgentSession, error)
StartSession spawns a new agent session with the given options.
func (*OhMyPiHarness) SupportsCompact ¶
func (h *OhMyPiHarness) SupportsCompact() bool
Click to show internal directories.
Click to hide internal directories.