Skip to content

Commit 39a7fe9

Browse files
committed
update(docs): clarify public option documentation
1 parent 637e9d4 commit 39a7fe9

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

Sources/AgentRunKit/Core/AgentLoop/ToolApproval.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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.
8078
public typealias ToolApprovalHandler = @Sendable (ToolApprovalRequest) async -> ToolApprovalDecision
8179

8280
private actor ApprovalDecisionWaiter {

Sources/AgentRunKit/Core/Streaming/StreamEventJSONCodec.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
/// Stable JSON encoding for persisting and replaying streamed events.
44
public 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

Sources/AgentRunKit/LLM/Providers/Anthropic/AnthropicReasoningOptions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
/// Provider-specific request options for Anthropic reasoning behavior.
44
public 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

0 commit comments

Comments
 (0)