Use native contexts for execution observation

This commit is contained in:
2026-11-23 02:38:21 +00:00
parent 88ebdbd819
commit 7aa4f2ec4d
9 changed files with 99 additions and 59 deletions

View File

@@ -60,11 +60,9 @@ type ProducerControls struct {
}
// ExecutionOptions carries native request options, not a completion protocol.
// Observer closures shared by concurrent operations must synchronize their state.
type ExecutionOptions struct {
Execution *promptkit.ExecutionTargetOverride
TransientRetries *int
Observer promptkit.ExecutionObserver `json:"-"`
OnPrepared func(context.Context, promptkit.PreparedRun) `json:"-"`
Capture EvidenceWriter `json:"-"`
}