agent-afk 5.282.7 → 5.282.9

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.
@@ -27,8 +27,9 @@ export interface OpenAIAssistantToolCallMessage {
27
27
  };
28
28
  }>;
29
29
  reasoning_content?: string;
30
+ reasoning?: string;
30
31
  }
31
- export declare function assistantMessageWithToolCalls(accumulatedText: string, toolCalls: readonly AccumulatedToolCall[], reasoningText?: string): OpenAIAssistantToolCallMessage;
32
+ export declare function assistantMessageWithToolCalls(accumulatedText: string, toolCalls: readonly AccumulatedToolCall[], reasoningText?: string, reasoningField?: 'reasoning_content' | 'reasoning'): OpenAIAssistantToolCallMessage;
32
33
  export interface OpenAIToolResultMessage {
33
34
  role: 'tool';
34
35
  tool_call_id: string;
@@ -16,6 +16,7 @@ export interface OpenAIMessage {
16
16
  content: string | OpenAIContentPart[];
17
17
  tool_call_id?: string;
18
18
  reasoning_content?: string;
19
+ reasoning?: string;
19
20
  tool_calls?: OpenAIToolCall[];
20
21
  }
21
22
  export interface OpenAIToolCall {
@@ -33,6 +33,7 @@ export interface OpenAIChunk {
33
33
  export interface StreamState {
34
34
  assistantText: string;
35
35
  reasoningText: string;
36
+ reasoningField: 'reasoning_content' | 'reasoning';
36
37
  toolCallsByIndex: Map<number, AccumulatedToolCall>;
37
38
  finishReason: string | null;
38
39
  usage: OpenAIChunk['usage'] | null;
@@ -29,6 +29,7 @@ export declare function resolveBinding(input: string | undefined, bindings?: Mod
29
29
  export declare function resolveModelInput(input: string | undefined, bindings?: ModelSlots): string | undefined;
30
30
  export declare function unconfiguredSlotError(input: string | undefined, bindings?: ModelSlots): string | undefined;
31
31
  export declare function parseModelsConfig(raw: unknown): Partial<Record<SlotName, ModelSlotBinding>>;
32
+ export declare function _resetJsonStringSlotWarnings(): void;
32
33
  export declare function coerceSlotBindingInput(raw: unknown): {
33
34
  ok: true;
34
35
  value: ModelSlotBinding;