File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ extension ToolApprovalDecision: Codable {
7474 }
7575}
7676
77- /// Asynchronously resolves a tool approval request.
78- ///
79- /// Callers remain responsible for approval timeout policy, while task cancellation aborts waiting immediately.
77+ /// Asynchronously resolves a tool approval request; no timeout is enforced, cancel the awaiting task to abort.
8078public typealias ToolApprovalHandler = @Sendable ( ToolApprovalRequest) async -> ToolApprovalDecision
8179
8280private actor ApprovalDecisionWaiter {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Foundation
22
33/// Stable JSON encoding for persisting and replaying streamed events.
44public enum StreamEventJSONCodec {
5- /// Returns a `JSONEncoder` configured for the stable event wire format.
5+ /// Returns an encoder configured for the stable stream event wire format.
66 public static func makeEncoder( ) -> JSONEncoder {
77 let encoder = JSONEncoder ( )
88 encoder. outputFormatting = [ . sortedKeys]
@@ -11,7 +11,7 @@ public enum StreamEventJSONCodec {
1111 return encoder
1212 }
1313
14- /// Returns a `JSONDecoder` configured for the stable event wire format.
14+ /// Returns a decoder configured for the stable stream event wire format.
1515 public static func makeDecoder( ) -> JSONDecoder {
1616 let decoder = JSONDecoder ( )
1717 decoder. keyDecodingStrategy = . useDefaultKeys
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Foundation
22
33/// Provider-specific request options for Anthropic reasoning behavior.
44public struct AnthropicReasoningOptions : Sendable , Equatable {
5- /// The Anthropic wire-level strategy used to lower shared reasoning intent .
5+ /// Whether reasoning uses Anthropic's manual `thinking` block or the adaptive thinking flow .
66 public enum Mode : Sendable , Equatable {
77 case manual
88 case adaptive
You can’t perform that action at this time.
0 commit comments