Skip to content

Commit f539e0a

Browse files
committed
patch
1 parent d2c014b commit f539e0a

5 files changed

Lines changed: 22 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agent-swarm-kit",
3-
"version": "1.1.118",
3+
"version": "1.1.119",
44
"description": "A TypeScript library for building orchestrated framework-agnostic multi-agent AI systems",
55
"author": {
66
"name": "Petr Tripolsky",

src/functions/target/json.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ const jsonInternal = beginContext(
143143
messages: await history.list(),
144144
mode: "tool",
145145
outlineName,
146+
format,
146147
});
147148
if (completionCallbacks?.onComplete) {
148149
completionCallbacks.onComplete(

src/interfaces/Completion.interface.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { IModelMessage } from "../model/ModelMessage.model";
22
import { ITool } from "../model/Tool.model";
33
import { AgentName } from "./Agent.interface";
4-
import { IOutlineMessage, OutlineName } from "./Outline.interface";
4+
import { IOutlineFormat, IOutlineMessage, OutlineName } from "./Outline.interface";
55
import { ExecutionMode } from "./Session.interface";
66

77
/**
@@ -47,6 +47,15 @@ export interface ICompletionArgs {
4747

4848
/** Optional array of tools available for the completion process (e.g., for tool calls). */
4949
tools?: ITool[];
50+
51+
/**
52+
* Optional format for the outline, specifying how the completion should be structured.
53+
* This is used to define the expected output format for JSON completions.
54+
* If not provided, the default outline format will be used.
55+
* @type {IOutlineFormat}
56+
* @optional
57+
*/
58+
format?: IOutlineFormat;
5059
}
5160

5261
/**

types.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,6 +3399,14 @@ interface ICompletionArgs {
33993399
messages: (IModelMessage | IOutlineMessage)[];
34003400
/** Optional array of tools available for the completion process (e.g., for tool calls). */
34013401
tools?: ITool[];
3402+
/**
3403+
* Optional format for the outline, specifying how the completion should be structured.
3404+
* This is used to define the expected output format for JSON completions.
3405+
* If not provided, the default outline format will be used.
3406+
* @type {IOutlineFormat}
3407+
* @optional
3408+
*/
3409+
format?: IOutlineFormat;
34023410
}
34033411
/**
34043412
* Interface representing lifecycle callbacks for completion events.

0 commit comments

Comments
 (0)