Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.86.1",
"cliVersion": "5.10.1",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand Down Expand Up @@ -32,6 +32,6 @@
}
}
},
"originGitCommit": "23bce53307f0836f2dcd50e82ef0aba136e7ec2f",
"originGitCommit": "26f1ceaf0a89c9451e22f458c2b1408177bbc92f",
"sdkVersion": "0.0.0-dev"
}
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@
"test": "vitest",
"test:unit": "vitest --project unit",
"test:wire": "vitest --project wire",
"test:integration": "pnpm test:integration:main && pnpm test:integration:empty-state",
"test:integration:main": "vitest run --config vitest.integration.config.mts --project integration",
"test:integration:empty-state": "vitest run --config vitest.integration.config.mts --project integration-empty-state"
"test:integration": "vitest --config vitest.integration.config.mts"
},
"dependencies": {
"ws": "^8.16.0"
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/AgentsCreateExpertReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export interface AgentsCreateExpertReference {
name?: string;
/** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
systemPrompt?: string;
/** Optional configuration override for the registry expert. Values provided here are deep-merged with the schema defaults declared on the registry expert and validated against its `configSchema`. Ignored when the registry expert has no schema. */
config?: Record<string, unknown>;
}
2 changes: 2 additions & 0 deletions src/api/types/AgentsExpertReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export interface AgentsExpertReference {
name: string;
/** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
systemPrompt?: string;
/** The fully resolved configuration for this expert: schema defaults from the registry expert deep-merged with any `config` override supplied at creation. Present only when the source registry expert defined a `configSchema`. */
resolvedConfig?: Record<string, unknown>;
}
2 changes: 2 additions & 0 deletions src/api/types/AgentsRegistryExpert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ export interface AgentsRegistryExpert {
description: string;
/** A list of MCP servers the expert can call, including their authorization types. */
mcpServers?: Corti.AgentsRegistryMcpServer[];
/** Optional JSON Schema describing the configuration this expert accepts. When present, callers may supply a matching `config` object on `AgentsCreateExpertReference`; values are deep-merged with schema defaults and validated against this schema. */
configSchema?: Record<string, unknown>;
}
2 changes: 2 additions & 0 deletions src/serialization/types/AgentsCreateExpertReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const AgentsCreateExpertReference: core.serialization.ObjectSchema<
id: core.serialization.string().optional(),
name: core.serialization.string().optional(),
systemPrompt: core.serialization.string().optional(),
config: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
});

export declare namespace AgentsCreateExpertReference {
Expand All @@ -21,5 +22,6 @@ export declare namespace AgentsCreateExpertReference {
id?: string | null;
name?: string | null;
systemPrompt?: string | null;
config?: Record<string, unknown> | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/AgentsExpertReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const AgentsExpertReference: core.serialization.ObjectSchema<
id: core.serialization.string(),
name: core.serialization.string(),
systemPrompt: core.serialization.string().optional(),
resolvedConfig: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
});

export declare namespace AgentsExpertReference {
Expand All @@ -21,5 +22,6 @@ export declare namespace AgentsExpertReference {
id: string;
name: string;
systemPrompt?: string | null;
resolvedConfig?: Record<string, unknown> | null;
}
}
2 changes: 2 additions & 0 deletions src/serialization/types/AgentsRegistryExpert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const AgentsRegistryExpert: core.serialization.ObjectSchema<
displayDescription: core.serialization.string().optional(),
description: core.serialization.string(),
mcpServers: core.serialization.list(AgentsRegistryMcpServer).optional(),
configSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
});

export declare namespace AgentsRegistryExpert {
Expand All @@ -23,5 +24,6 @@ export declare namespace AgentsRegistryExpert {
displayDescription?: string | null;
description: string;
mcpServers?: AgentsRegistryMcpServer.Raw[] | null;
configSchema?: Record<string, unknown> | null;
}
}
4 changes: 4 additions & 0 deletions tests/wire/agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1793,6 +1793,7 @@ describe("AgentsClient", () => {
displayDescription: "displayDescription",
description: "description",
mcpServers: [{ name: "name", authorizationType: "none" }],
configSchema: { key: "value" },
},
],
};
Expand Down Expand Up @@ -1822,6 +1823,9 @@ describe("AgentsClient", () => {
authorizationType: "none",
},
],
configSchema: {
key: "value",
},
},
],
});
Expand Down
Loading