Backend is the unified interface for executing prompts via coding agents.
| 14 | |
| 15 | // Backend is the unified interface for executing prompts via coding agents. |
| 16 | type Backend interface { |
| 17 | // Execute runs a prompt and returns a Session for streaming results. |
| 18 | // The caller should read from Session.Messages (optional) and wait on |
| 19 | // Session.Result for the final outcome. |
| 20 | Execute(ctx context.Context, prompt string, opts ExecOptions) (*Session, error) |
| 21 | } |
| 22 | |
| 23 | // ExecOptions configures a single execution. |
| 24 | type ExecOptions struct { |
no outgoing calls
no test coverage detected