@rodrigobeber/patoai-dtos 4.6.56 → 4.6.57

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.
@@ -1,4 +1,4 @@
1
- import { AIFunctionCallOutput, AITextConfig, AITool } from "./ai-types";
1
+ import { AIFunctionCallItem, AIFunctionCallOutput, AITextConfig, AITool } from "./ai-types";
2
2
  import { InputMessageDto } from "./input-message.dto";
3
3
  import { ProviderDto } from "../core/provider.dto";
4
4
  export interface ResponseCreateFallbackDto {
@@ -8,6 +8,7 @@ export interface ResponseCreateFallbackDto {
8
8
  maxOutputTokens: number;
9
9
  effort?: string;
10
10
  }
11
+ export type AIConversationTurn = AIFunctionCallItem | AIFunctionCallOutput;
11
12
  export interface ResponseCreateDto {
12
13
  provider: ProviderDto;
13
14
  model: string;
@@ -15,6 +16,13 @@ export interface ResponseCreateDto {
15
16
  instructions: string;
16
17
  messages: InputMessageDto[];
17
18
  toolOutputs: AIFunctionCallOutput[];
19
+ /**
20
+ * Full conversation history accumulated across tool-loop iterations.
21
+ * On the OpenAI path with previousResponseId set, this is ignored (server-side state is used).
22
+ * On stateless providers (e.g. OpenRouter fallback), this lets the new provider pick up mid-loop
23
+ * with the complete assistant function_calls + function_call_outputs sequence.
24
+ */
25
+ turns?: AIConversationTurn[];
18
26
  temperature: number;
19
27
  effort: string;
20
28
  parallelToolCalls: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rodrigobeber/patoai-dtos",
3
- "version": "4.6.56",
3
+ "version": "4.6.57",
4
4
  "description": "Data Transfer Objects for PatoAI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",