agent-swarm-kit 1.1.121 → 1.1.123
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/build/index.cjs +15 -2
- package/build/index.mjs +15 -2
- package/package.json +1 -1
- package/types.d.ts +25 -2
package/build/index.cjs
CHANGED
|
@@ -13526,7 +13526,7 @@ class DocService {
|
|
|
13526
13526
|
result.push("");
|
|
13527
13527
|
}
|
|
13528
13528
|
}
|
|
13529
|
-
if (outlineSchema.format) {
|
|
13529
|
+
if ("properties" in outlineSchema.format) {
|
|
13530
13530
|
result.push("");
|
|
13531
13531
|
result.push("## Output format");
|
|
13532
13532
|
const entries = Object.entries(outlineSchema.format.properties);
|
|
@@ -13545,7 +13545,7 @@ class DocService {
|
|
|
13545
13545
|
result.push("");
|
|
13546
13546
|
result.push(`*Enum:* \`${e.map(sanitizeMarkdown).join(", ")}\``);
|
|
13547
13547
|
}
|
|
13548
|
-
{
|
|
13548
|
+
if ("required" in outlineSchema.format) {
|
|
13549
13549
|
result.push("");
|
|
13550
13550
|
result.push(`*Required:* [${outlineSchema.format.required.includes(key) ? "x" : " "}]`);
|
|
13551
13551
|
}
|
|
@@ -13556,6 +13556,15 @@ class DocService {
|
|
|
13556
13556
|
}
|
|
13557
13557
|
result.push("");
|
|
13558
13558
|
}
|
|
13559
|
+
if (outlineSchema.format.type === "json_schema") {
|
|
13560
|
+
result.push("");
|
|
13561
|
+
result.push("## Output format");
|
|
13562
|
+
result.push("");
|
|
13563
|
+
result.push("```json");
|
|
13564
|
+
result.push(JSON.stringify(outlineSchema.format, null, 2));
|
|
13565
|
+
result.push("```");
|
|
13566
|
+
result.push("");
|
|
13567
|
+
}
|
|
13559
13568
|
const getValidations = () => {
|
|
13560
13569
|
if (outlineSchema.validations) {
|
|
13561
13570
|
return outlineSchema.validations
|
|
@@ -21319,6 +21328,10 @@ const jsonInternal = beginContext(async (outlineName, param) => {
|
|
|
21319
21328
|
}
|
|
21320
21329
|
catch (error) {
|
|
21321
21330
|
errorMessage = functoolsKit.getErrorMessage(error);
|
|
21331
|
+
console.error(`agent-swarm outline error outlineName=${outlineName} attempt=${attempt}`, {
|
|
21332
|
+
param,
|
|
21333
|
+
errorMessage,
|
|
21334
|
+
});
|
|
21322
21335
|
}
|
|
21323
21336
|
}
|
|
21324
21337
|
const result = {
|
package/build/index.mjs
CHANGED
|
@@ -13524,7 +13524,7 @@ class DocService {
|
|
|
13524
13524
|
result.push("");
|
|
13525
13525
|
}
|
|
13526
13526
|
}
|
|
13527
|
-
if (outlineSchema.format) {
|
|
13527
|
+
if ("properties" in outlineSchema.format) {
|
|
13528
13528
|
result.push("");
|
|
13529
13529
|
result.push("## Output format");
|
|
13530
13530
|
const entries = Object.entries(outlineSchema.format.properties);
|
|
@@ -13543,7 +13543,7 @@ class DocService {
|
|
|
13543
13543
|
result.push("");
|
|
13544
13544
|
result.push(`*Enum:* \`${e.map(sanitizeMarkdown).join(", ")}\``);
|
|
13545
13545
|
}
|
|
13546
|
-
{
|
|
13546
|
+
if ("required" in outlineSchema.format) {
|
|
13547
13547
|
result.push("");
|
|
13548
13548
|
result.push(`*Required:* [${outlineSchema.format.required.includes(key) ? "x" : " "}]`);
|
|
13549
13549
|
}
|
|
@@ -13554,6 +13554,15 @@ class DocService {
|
|
|
13554
13554
|
}
|
|
13555
13555
|
result.push("");
|
|
13556
13556
|
}
|
|
13557
|
+
if (outlineSchema.format.type === "json_schema") {
|
|
13558
|
+
result.push("");
|
|
13559
|
+
result.push("## Output format");
|
|
13560
|
+
result.push("");
|
|
13561
|
+
result.push("```json");
|
|
13562
|
+
result.push(JSON.stringify(outlineSchema.format, null, 2));
|
|
13563
|
+
result.push("```");
|
|
13564
|
+
result.push("");
|
|
13565
|
+
}
|
|
13557
13566
|
const getValidations = () => {
|
|
13558
13567
|
if (outlineSchema.validations) {
|
|
13559
13568
|
return outlineSchema.validations
|
|
@@ -21317,6 +21326,10 @@ const jsonInternal = beginContext(async (outlineName, param) => {
|
|
|
21317
21326
|
}
|
|
21318
21327
|
catch (error) {
|
|
21319
21328
|
errorMessage = getErrorMessage(error);
|
|
21329
|
+
console.error(`agent-swarm outline error outlineName=${outlineName} attempt=${attempt}`, {
|
|
21330
|
+
param,
|
|
21331
|
+
errorMessage,
|
|
21332
|
+
});
|
|
21320
21333
|
}
|
|
21321
21334
|
}
|
|
21322
21335
|
const result = {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -3039,14 +3039,37 @@ type IOutlineParam = any;
|
|
|
3039
3039
|
* @typedef {any} IOutlineData
|
|
3040
3040
|
*/
|
|
3041
3041
|
type IOutlineData = any;
|
|
3042
|
+
/**
|
|
3043
|
+
* Type representing the format definition for outline data.
|
|
3044
|
+
* Can be either a full JSON schema format or an object-based format.
|
|
3045
|
+
* Used to specify the expected structure for outline operations.
|
|
3046
|
+
* @typedef {IOutlineSchemaFormat | IOutlineObjectFormat} IOutlineFormat
|
|
3047
|
+
*/
|
|
3048
|
+
type IOutlineFormat = IOutlineSchemaFormat | IOutlineObjectFormat;
|
|
3049
|
+
/**
|
|
3050
|
+
* Interface representing a format definition using a JSON schema.
|
|
3051
|
+
* Specifies the type and the associated JSON schema object for validation.
|
|
3052
|
+
* Used when the outline format is defined by a complete JSON schema.
|
|
3053
|
+
*/
|
|
3054
|
+
interface IOutlineSchemaFormat {
|
|
3055
|
+
/**
|
|
3056
|
+
* The type of the outline format (e.g., "json_schema").
|
|
3057
|
+
*/
|
|
3058
|
+
type: string;
|
|
3059
|
+
/**
|
|
3060
|
+
* The JSON schema object defining the structure and validation rules.
|
|
3061
|
+
*/
|
|
3062
|
+
json_schema: object;
|
|
3063
|
+
}
|
|
3042
3064
|
/**
|
|
3043
3065
|
* Interface representing the format/schema definition for outline data.
|
|
3044
3066
|
* Specifies the structure, required fields, and property metadata for outline operations.
|
|
3045
3067
|
* Used to enforce and document the expected shape of outline data.
|
|
3046
3068
|
*/
|
|
3047
|
-
interface
|
|
3069
|
+
interface IOutlineObjectFormat {
|
|
3048
3070
|
/**
|
|
3049
3071
|
* The root type of the outline format (e.g., "object").
|
|
3072
|
+
* Should be "json_object" for partial JSON schemas or "json_schema" for full matching schemas.
|
|
3050
3073
|
*/
|
|
3051
3074
|
type: string;
|
|
3052
3075
|
/**
|
|
@@ -15718,4 +15741,4 @@ declare const Utils: {
|
|
|
15718
15741
|
PersistEmbeddingUtils: typeof PersistEmbeddingUtils;
|
|
15719
15742
|
};
|
|
15720
15743
|
|
|
15721
|
-
export { Adapter, Chat, ChatInstance, Compute, type EventSource, ExecutionContextService, History, HistoryMemoryInstance, HistoryPersistInstance, type IAgentSchemaInternal, type IAgentTool, type IBaseEvent, type IBusEvent, type IBusEventContext, type IChatArgs, type IChatInstance, type IChatInstanceCallbacks, type ICompletionArgs, type ICompletionSchema, type IComputeSchema, type ICustomEvent, type IEmbeddingSchema, type IGlobalConfig, type IHistoryAdapter, type IHistoryControl, type IHistoryInstance, type IHistoryInstanceCallbacks, type IIncomingMessage, type ILoggerAdapter, type ILoggerInstance, type ILoggerInstanceCallbacks, type IMCPSchema, type IMCPTool, type IMCPToolCallDto, type IMakeConnectionConfig, type IMakeDisposeParams, type IModelMessage, type INavigateToAgentParams, type INavigateToTriageParams, type IOutgoingMessage, type IOutlineFormat, type IOutlineHistory, type IOutlineMessage, type IOutlineResult, type IOutlineSchema, type IOutlineValidationFn, type IPersistActiveAgentData, type IPersistAliveData, type IPersistBase, type IPersistEmbeddingData, type IPersistMemoryData, type IPersistNavigationStackData, type IPersistPolicyData, type IPersistStateData, type IPersistStorageData, type IPipelineSchema, type IPolicySchema, type ISessionConfig, type IStateSchema, type IStorageData, type IStorageSchema, type ISwarmSchema, type ITool, type IToolCall, type IWikiSchema, Logger, LoggerInstance, MCP, type MCPToolProperties, MethodContextService, Operator, OperatorInstance, PayloadContextService, PersistAlive, PersistBase, PersistEmbedding, PersistList, PersistMemory, PersistPolicy, PersistState, PersistStorage, PersistSwarm, Policy, type ReceiveMessageFn, RoundRobin, Schema, SchemaContextService, type SendMessageFn, SharedCompute, SharedState, SharedStorage, State, Storage, type THistoryInstanceCtor, type THistoryMemoryInstance, type THistoryPersistInstance, type TLoggerInstance, type TOperatorInstance, type TPersistBase, type TPersistBaseCtor, type TPersistList, type ToolValue, Utils, addAgent, addAgentNavigation, addCompletion, addCompute, addEmbedding, addMCP, addOutline, addPipeline, addPolicy, addState, addStorage, addSwarm, addTool, addTriageNavigation, addWiki, beginContext, cancelOutput, cancelOutputForce, changeToAgent, changeToDefaultAgent, changeToPrevAgent, commitAssistantMessage, commitAssistantMessageForce, commitFlush, commitFlushForce, commitStopTools, commitStopToolsForce, commitSystemMessage, commitSystemMessageForce, commitToolOutput, commitToolOutputForce, commitToolRequest, commitToolRequestForce, commitUserMessage, commitUserMessageForce, complete, createNavigateToAgent, createNavigateToTriageAgent, disposeConnection, dumpAgent, dumpClientPerformance, dumpDocs, dumpPerfomance, dumpSwarm, emit, emitForce, event, execute, executeForce, fork, getAgent, getAgentHistory, getAgentName, getAssistantHistory, getCheckBusy, getCompletion, getCompute, getEmbeding, getLastAssistantMessage, getLastSystemMessage, getLastUserMessage, getMCP, getNavigationRoute, getPayload, getPipeline, getPolicy, getRawHistory, getSessionContext, getSessionMode, getState, getStorage, getSwarm, getTool, getToolNameForModel, getUserHistory, getWiki, hasNavigation, hasSession, json, listenAgentEvent, listenAgentEventOnce, listenEvent, listenEventOnce, listenExecutionEvent, listenExecutionEventOnce, listenHistoryEvent, listenHistoryEventOnce, listenPolicyEvent, listenPolicyEventOnce, listenSessionEvent, listenSessionEventOnce, listenStateEvent, listenStateEventOnce, listenStorageEvent, listenStorageEventOnce, listenSwarmEvent, listenSwarmEventOnce, makeAutoDispose, makeConnection, markOffline, markOnline, notify, notifyForce, overrideAgent, overrideCompletion, overrideCompute, overrideEmbeding, overrideMCP, overrideOutline, overridePipeline, overridePolicy, overrideState, overrideStorage, overrideSwarm, overrideTool, overrideWiki, question, questionForce, runStateless, runStatelessForce, scope, session, setConfig, startPipeline, swarm };
|
|
15744
|
+
export { Adapter, Chat, ChatInstance, Compute, type EventSource, ExecutionContextService, History, HistoryMemoryInstance, HistoryPersistInstance, type IAgentSchemaInternal, type IAgentTool, type IBaseEvent, type IBusEvent, type IBusEventContext, type IChatArgs, type IChatInstance, type IChatInstanceCallbacks, type ICompletionArgs, type ICompletionSchema, type IComputeSchema, type ICustomEvent, type IEmbeddingSchema, type IGlobalConfig, type IHistoryAdapter, type IHistoryControl, type IHistoryInstance, type IHistoryInstanceCallbacks, type IIncomingMessage, type ILoggerAdapter, type ILoggerInstance, type ILoggerInstanceCallbacks, type IMCPSchema, type IMCPTool, type IMCPToolCallDto, type IMakeConnectionConfig, type IMakeDisposeParams, type IModelMessage, type INavigateToAgentParams, type INavigateToTriageParams, type IOutgoingMessage, type IOutlineFormat, type IOutlineHistory, type IOutlineMessage, type IOutlineObjectFormat, type IOutlineResult, type IOutlineSchema, type IOutlineSchemaFormat, type IOutlineValidationFn, type IPersistActiveAgentData, type IPersistAliveData, type IPersistBase, type IPersistEmbeddingData, type IPersistMemoryData, type IPersistNavigationStackData, type IPersistPolicyData, type IPersistStateData, type IPersistStorageData, type IPipelineSchema, type IPolicySchema, type ISessionConfig, type IStateSchema, type IStorageData, type IStorageSchema, type ISwarmSchema, type ITool, type IToolCall, type IWikiSchema, Logger, LoggerInstance, MCP, type MCPToolProperties, MethodContextService, Operator, OperatorInstance, PayloadContextService, PersistAlive, PersistBase, PersistEmbedding, PersistList, PersistMemory, PersistPolicy, PersistState, PersistStorage, PersistSwarm, Policy, type ReceiveMessageFn, RoundRobin, Schema, SchemaContextService, type SendMessageFn, SharedCompute, SharedState, SharedStorage, State, Storage, type THistoryInstanceCtor, type THistoryMemoryInstance, type THistoryPersistInstance, type TLoggerInstance, type TOperatorInstance, type TPersistBase, type TPersistBaseCtor, type TPersistList, type ToolValue, Utils, addAgent, addAgentNavigation, addCompletion, addCompute, addEmbedding, addMCP, addOutline, addPipeline, addPolicy, addState, addStorage, addSwarm, addTool, addTriageNavigation, addWiki, beginContext, cancelOutput, cancelOutputForce, changeToAgent, changeToDefaultAgent, changeToPrevAgent, commitAssistantMessage, commitAssistantMessageForce, commitFlush, commitFlushForce, commitStopTools, commitStopToolsForce, commitSystemMessage, commitSystemMessageForce, commitToolOutput, commitToolOutputForce, commitToolRequest, commitToolRequestForce, commitUserMessage, commitUserMessageForce, complete, createNavigateToAgent, createNavigateToTriageAgent, disposeConnection, dumpAgent, dumpClientPerformance, dumpDocs, dumpPerfomance, dumpSwarm, emit, emitForce, event, execute, executeForce, fork, getAgent, getAgentHistory, getAgentName, getAssistantHistory, getCheckBusy, getCompletion, getCompute, getEmbeding, getLastAssistantMessage, getLastSystemMessage, getLastUserMessage, getMCP, getNavigationRoute, getPayload, getPipeline, getPolicy, getRawHistory, getSessionContext, getSessionMode, getState, getStorage, getSwarm, getTool, getToolNameForModel, getUserHistory, getWiki, hasNavigation, hasSession, json, listenAgentEvent, listenAgentEventOnce, listenEvent, listenEventOnce, listenExecutionEvent, listenExecutionEventOnce, listenHistoryEvent, listenHistoryEventOnce, listenPolicyEvent, listenPolicyEventOnce, listenSessionEvent, listenSessionEventOnce, listenStateEvent, listenStateEventOnce, listenStorageEvent, listenStorageEventOnce, listenSwarmEvent, listenSwarmEventOnce, makeAutoDispose, makeConnection, markOffline, markOnline, notify, notifyForce, overrideAgent, overrideCompletion, overrideCompute, overrideEmbeding, overrideMCP, overrideOutline, overridePipeline, overridePolicy, overrideState, overrideStorage, overrideSwarm, overrideTool, overrideWiki, question, questionForce, runStateless, runStatelessForce, scope, session, setConfig, startPipeline, swarm };
|