@opencow-ai/opencow-agent-sdk 0.4.24 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +63879 -76777
- package/dist/client.js +31246 -92928
- package/dist/constants/envVars.d.ts +4 -0
- package/dist/controller/loop.d.ts +5 -0
- package/dist/providers/shared/retry.d.ts +33 -1
- package/dist/sdk.js +31246 -92928
- package/dist/session/tokens.d.ts +2 -1
- package/dist/types/replayState.d.ts +13 -0
- package/package.json +1 -1
package/dist/session/tokens.d.ts
CHANGED
|
@@ -50,7 +50,8 @@ export declare function doesMostRecentAssistantMessageExceed200k(messages: Messa
|
|
|
50
50
|
* - thinking (thinking_delta)
|
|
51
51
|
* - redacted_thinking data
|
|
52
52
|
* - tool_use input (input_json_delta)
|
|
53
|
-
* Note: signature_delta
|
|
53
|
+
* Note: signature_delta and replay_state_delta are excluded from streaming
|
|
54
|
+
* counts (not model output).
|
|
54
55
|
*/
|
|
55
56
|
export declare function getAssistantMessageContentLength(message: AssistantMessage): number;
|
|
56
57
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CanonicalThinkingBlock } from '../session/canonical/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* Opaque reasoning-replay token issued by the gateway for non-Anthropic
|
|
4
|
+
* providers. The SDK only stores it on the thinking block and sends it back
|
|
5
|
+
* with the history; only the gateway can decode it.
|
|
6
|
+
*/
|
|
7
|
+
export type ReplayStateThinkingBlock = CanonicalThinkingBlock & {
|
|
8
|
+
replay_state?: string;
|
|
9
|
+
};
|
|
10
|
+
export type ReplayStateDelta = {
|
|
11
|
+
type: 'replay_state_delta';
|
|
12
|
+
replay_state: string;
|
|
13
|
+
};
|
package/package.json
CHANGED