Skip to content

Commit cf62a27

Browse files
fix(specs): sync agent-studio OpenAPI from conversational-ai (generated)
algolia/api-clients-automation#6967 Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com> Co-authored-by: algolia-api-clients-automation-bot[bot] <288895823+algolia-api-clients-automation-bot[bot]@users.noreply.github.com>
1 parent 8c1e3c9 commit cf62a27

86 files changed

Lines changed: 1334 additions & 96 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
},
8080
{
8181
"path": "packages/agent-studio/dist/builds/browser.umd.js",
82-
"maxSize": "8.5KB"
82+
"maxSize": "9.25KB"
8383
}
8484
]
8585
},

‎packages/agent-studio/model/agentCompletionAlgoliaParams.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ export type AgentCompletionAlgoliaParams = {
66
mcpServers?: { [key: string]: { [key: string]: { [key: string]: string } } } | undefined;
77

88
searchParameters?: { [key: string]: SearchParametersOverrides } | null | undefined;
9+
10+
/**
11+
* Per-request override for the Algolia Search tool\'s indices, honored only when the tool is configured with `mode=\"dynamic\"`. A list of index names; the API looks up each name in the agent\'s static `tool.indices` and reuses that entry, including its description and access-control fields. A name the agent configuration does not list is rejected with HTTP 422 (`index_not_listed_on_tool`) unless the tool sets `allowUnlistedIndices`, in which case the API synthesizes a minimal entry carrying the index name only. Capped at 10 entries. Sending this field against an agent whose tool is in `mode=\"static\"` (the default) is rejected with HTTP 422 — change the tool\'s `mode` in the agent configuration first. Defaults to `null`, which preserves the existing static behavior.
12+
*/
13+
indices?: Array<string> | undefined;
914
};

‎packages/agent-studio/model/agentCompletionRequest.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import type { MessagesUnion } from './messagesUnion';
1010
export type AgentCompletionRequest = {
1111
configuration?: AgentTestConfiguration | undefined;
1212

13-
messages?: MessagesUnion | null | undefined;
13+
messages?: MessagesUnion | undefined;
1414

1515
/**
1616
* Optional conversation id.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { AgentCompletionRequest } from './agentCompletionRequest';
4+
import type { AguiCompletionRequest } from './aguiCompletionRequest';
5+
6+
export type AgentCompletionRequestUnion = AgentCompletionRequest | AguiCompletionRequest;

‎packages/agent-studio/model/agentTestConfiguration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

3-
import type { ToolConfigInput } from './toolConfigInput';
3+
import type { ItemsUnion } from './itemsUnion';
44

55
/**
66
* Dynamic configuration for testing agents.
@@ -18,5 +18,5 @@ export type AgentTestConfiguration = {
1818

1919
config: { [key: string]: any };
2020

21-
tools: Array<ToolConfigInput>;
21+
tools: Array<ItemsUnion>;
2222
};

‎packages/agent-studio/model/agentWithVersionResponse.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
22

33
import type { AgentStatus } from './agentStatus';
4-
import type { ToolConfigInput } from './toolConfigInput';
4+
import type { ToolConfigOutput } from './toolConfigOutput';
55

66
export type AgentWithVersionResponse = {
77
id: string;
@@ -22,7 +22,7 @@ export type AgentWithVersionResponse = {
2222

2323
config: { [key: string]: any };
2424

25-
tools?: Array<ToolConfigInput> | undefined;
25+
tools?: Array<ToolConfigOutput> | undefined;
2626

2727
templateType?: string | null | undefined;
2828

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { AguiResume } from './aguiResume';
4+
import type { ForwardedProps } from './forwardedProps';
5+
import type { ItemsUnionAguiCompletionRequest } from './itemsUnionAguiCompletionRequest';
6+
7+
export type AguiCompletionRequest = {
8+
/**
9+
* Conversation (thread) id.
10+
*/
11+
threadId: string;
12+
13+
/**
14+
* Identifier for the current AG-UI run.
15+
*/
16+
runId: string;
17+
18+
parentRunId?: string | undefined;
19+
20+
messages: Array<ItemsUnionAguiCompletionRequest>;
21+
22+
forwardedProps?: ForwardedProps | undefined;
23+
24+
resume?: Array<AguiResume> | null | undefined;
25+
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
import type { StatusEnum } from './statusEnum';
4+
5+
/**
6+
* A response to an interrupt emitted by a preceding AG-UI run.
7+
*/
8+
export type AguiResume = {
9+
interruptId: string;
10+
11+
status: StatusEnum;
12+
13+
payload?: { [key: string]: any } | undefined;
14+
};

‎packages/agent-studio/model/algoliaDisplayResultsToolConfig.ts‎

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2+
3+
/**
4+
* Use `algolia_grouped_results`.
5+
*/
6+
export type AlgoliaGroupedResultsCompatToolConfig = {
7+
name?: string | undefined;
8+
9+
/**
10+
* When true, a successful tool invocation ends the agent graph (no further LLM turn). Use for chat experiences where the tool payload IS the final response. Leave false to let the main LLM produce a concluding assistant message after the tool runs.
11+
*/
12+
isTerminal?: boolean | undefined;
13+
14+
/**
15+
* Minimum number of result groups.
16+
*/
17+
minGroups?: number | undefined;
18+
19+
/**
20+
* Maximum number of result groups.
21+
*/
22+
maxGroups?: number | undefined;
23+
24+
/**
25+
* Minimum hits per group.
26+
*/
27+
minResultsPerGroup?: number | undefined;
28+
29+
/**
30+
* Maximum hits per group.
31+
*/
32+
maxResultsPerGroup?: number | undefined;
33+
34+
type: string;
35+
};

0 commit comments

Comments
 (0)