syllable-sdk 0.1.0-alpha.42 → 0.1.0-alpha.44
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mintlify/mint.json +6 -4
- package/models/components/agentcreate.d.ts +1 -1
- package/models/components/agentresponse.d.ts +7 -1
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js +3 -0
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/agentupdate.d.ts +1 -1
- package/models/components/datasourcecreaterequest.d.ts +3 -3
- package/models/components/datasourcecreaterequest.d.ts.map +1 -1
- package/models/components/datasourcecreaterequest.js +2 -2
- package/models/components/datasourcecreaterequest.js.map +1 -1
- package/models/components/datasourcedetailresponse.d.ts +3 -3
- package/models/components/datasourcedetailresponse.d.ts.map +1 -1
- package/models/components/datasourcedetailresponse.js +2 -2
- package/models/components/datasourcedetailresponse.js.map +1 -1
- package/models/components/datasourcemetadataresponse.d.ts +3 -3
- package/models/components/datasourcemetadataresponse.d.ts.map +1 -1
- package/models/components/datasourcemetadataresponse.js +2 -2
- package/models/components/datasourcemetadataresponse.js.map +1 -1
- package/models/components/datasourceupdaterequest.d.ts +3 -3
- package/models/components/datasourceupdaterequest.d.ts.map +1 -1
- package/models/components/datasourceupdaterequest.js +2 -2
- package/models/components/datasourceupdaterequest.js.map +1 -1
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/statictoolparameter.d.ts +56 -0
- package/models/components/statictoolparameter.d.ts.map +1 -0
- package/models/components/statictoolparameter.js +68 -0
- package/models/components/statictoolparameter.js.map +1 -0
- package/models/components/statictoolparametertype.d.ts +40 -0
- package/models/components/statictoolparametertype.d.ts.map +1 -0
- package/models/components/statictoolparametertype.js +55 -0
- package/models/components/statictoolparametertype.js.map +1 -0
- package/models/components/tooldefinition.d.ts +6 -0
- package/models/components/tooldefinition.d.ts.map +1 -1
- package/models/components/tooldefinition.js +14 -0
- package/models/components/tooldefinition.js.map +1 -1
- package/models/components/tooldetailresponse.d.ts +6 -0
- package/models/components/tooldetailresponse.d.ts.map +1 -1
- package/models/components/tooldetailresponse.js +5 -0
- package/models/components/tooldetailresponse.js.map +1 -1
- package/models/components/toolpromptinfo.d.ts +40 -0
- package/models/components/toolpromptinfo.d.ts.map +1 -0
- package/models/components/toolpromptinfo.js +61 -0
- package/models/components/toolpromptinfo.js.map +1 -0
- package/models/components/toolresponse.d.ts +6 -0
- package/models/components/toolresponse.d.ts.map +1 -1
- package/models/components/toolresponse.js +5 -0
- package/models/components/toolresponse.js.map +1 -1
- package/openapi.json +161 -39
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/agentcreate.ts +1 -1
- package/src/models/components/agentresponse.ts +14 -1
- package/src/models/components/agentupdate.ts +1 -1
- package/src/models/components/datasourcecreaterequest.ts +5 -5
- package/src/models/components/datasourcedetailresponse.ts +5 -5
- package/src/models/components/datasourcemetadataresponse.ts +5 -5
- package/src/models/components/datasourceupdaterequest.ts +5 -5
- package/src/models/components/index.ts +3 -0
- package/src/models/components/statictoolparameter.ts +105 -0
- package/src/models/components/statictoolparametertype.ts +43 -0
- package/src/models/components/tooldefinition.ts +24 -0
- package/src/models/components/tooldetailresponse.ts +15 -0
- package/src/models/components/toolpromptinfo.ts +75 -0
- package/src/models/components/toolresponse.ts +15 -0
package/openapi.json
CHANGED
|
@@ -6019,7 +6019,7 @@
|
|
|
6019
6019
|
},
|
|
6020
6020
|
"type": "array",
|
|
6021
6021
|
"title": "Prompt Tool Defaults",
|
|
6022
|
-
"description": "
|
|
6022
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6023
6023
|
},
|
|
6024
6024
|
"languages": {
|
|
6025
6025
|
"items": {
|
|
@@ -6163,7 +6163,7 @@
|
|
|
6163
6163
|
},
|
|
6164
6164
|
"type": "array",
|
|
6165
6165
|
"title": "Prompt Tool Defaults",
|
|
6166
|
-
"description": "
|
|
6166
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6167
6167
|
},
|
|
6168
6168
|
"languages": {
|
|
6169
6169
|
"items": {
|
|
@@ -6267,6 +6267,21 @@
|
|
|
6267
6267
|
],
|
|
6268
6268
|
"title": "Channel Targets",
|
|
6269
6269
|
"description": "Channel targets associated with the agent"
|
|
6270
|
+
},
|
|
6271
|
+
"tools": {
|
|
6272
|
+
"anyOf": [
|
|
6273
|
+
{
|
|
6274
|
+
"items": {
|
|
6275
|
+
"$ref": "#/components/schemas/ToolResponse"
|
|
6276
|
+
},
|
|
6277
|
+
"type": "array"
|
|
6278
|
+
},
|
|
6279
|
+
{
|
|
6280
|
+
"type": "null"
|
|
6281
|
+
}
|
|
6282
|
+
],
|
|
6283
|
+
"title": "Tools",
|
|
6284
|
+
"description": "Tools associated with the agent"
|
|
6270
6285
|
}
|
|
6271
6286
|
},
|
|
6272
6287
|
"type": "object",
|
|
@@ -6393,7 +6408,7 @@
|
|
|
6393
6408
|
},
|
|
6394
6409
|
"type": "array",
|
|
6395
6410
|
"title": "Prompt Tool Defaults",
|
|
6396
|
-
"description": "
|
|
6411
|
+
"description": "User-configured parameter values for the agent's tools"
|
|
6397
6412
|
},
|
|
6398
6413
|
"languages": {
|
|
6399
6414
|
"items": {
|
|
@@ -7869,16 +7884,10 @@
|
|
|
7869
7884
|
"description": "Whether the content should be split into smaller chunks. This can improve agent performance when searching a large data source but risks some relevant information being left off search results if chunk_delimiter is not set up properly."
|
|
7870
7885
|
},
|
|
7871
7886
|
"chunk_delimiter": {
|
|
7872
|
-
"
|
|
7873
|
-
{
|
|
7874
|
-
"type": "string"
|
|
7875
|
-
},
|
|
7876
|
-
{
|
|
7877
|
-
"type": "null"
|
|
7878
|
-
}
|
|
7879
|
-
],
|
|
7887
|
+
"type": "string",
|
|
7880
7888
|
"title": "Chunk Delimiter",
|
|
7881
|
-
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
7889
|
+
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\\n\\n').",
|
|
7890
|
+
"default": "\n\n"
|
|
7882
7891
|
},
|
|
7883
7892
|
"text": {
|
|
7884
7893
|
"type": "string",
|
|
@@ -7933,16 +7942,10 @@
|
|
|
7933
7942
|
"description": "Whether the content should be split into smaller chunks. This can improve agent performance when searching a large data source but risks some relevant information being left off search results if chunk_delimiter is not set up properly."
|
|
7934
7943
|
},
|
|
7935
7944
|
"chunk_delimiter": {
|
|
7936
|
-
"
|
|
7937
|
-
{
|
|
7938
|
-
"type": "string"
|
|
7939
|
-
},
|
|
7940
|
-
{
|
|
7941
|
-
"type": "null"
|
|
7942
|
-
}
|
|
7943
|
-
],
|
|
7945
|
+
"type": "string",
|
|
7944
7946
|
"title": "Chunk Delimiter",
|
|
7945
|
-
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
7947
|
+
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\\n\\n').",
|
|
7948
|
+
"default": "\n\n"
|
|
7946
7949
|
},
|
|
7947
7950
|
"edit_comments": {
|
|
7948
7951
|
"anyOf": [
|
|
@@ -8030,16 +8033,10 @@
|
|
|
8030
8033
|
"description": "Whether the content should be split into smaller chunks. This can improve agent performance when searching a large data source but risks some relevant information being left off search results if chunk_delimiter is not set up properly."
|
|
8031
8034
|
},
|
|
8032
8035
|
"chunk_delimiter": {
|
|
8033
|
-
"
|
|
8034
|
-
{
|
|
8035
|
-
"type": "string"
|
|
8036
|
-
},
|
|
8037
|
-
{
|
|
8038
|
-
"type": "null"
|
|
8039
|
-
}
|
|
8040
|
-
],
|
|
8036
|
+
"type": "string",
|
|
8041
8037
|
"title": "Chunk Delimiter",
|
|
8042
|
-
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
8038
|
+
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\\n\\n').",
|
|
8039
|
+
"default": "\n\n"
|
|
8043
8040
|
},
|
|
8044
8041
|
"edit_comments": {
|
|
8045
8042
|
"anyOf": [
|
|
@@ -8134,16 +8131,10 @@
|
|
|
8134
8131
|
"description": "Whether the content should be split into smaller chunks. This can improve agent performance when searching a large data source but risks some relevant information being left off search results if chunk_delimiter is not set up properly."
|
|
8135
8132
|
},
|
|
8136
8133
|
"chunk_delimiter": {
|
|
8137
|
-
"
|
|
8138
|
-
{
|
|
8139
|
-
"type": "string"
|
|
8140
|
-
},
|
|
8141
|
-
{
|
|
8142
|
-
"type": "null"
|
|
8143
|
-
}
|
|
8144
|
-
],
|
|
8134
|
+
"type": "string",
|
|
8145
8135
|
"title": "Chunk Delimiter",
|
|
8146
|
-
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
8136
|
+
"description": "String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\\n\\n').",
|
|
8137
|
+
"default": "\n\n"
|
|
8147
8138
|
},
|
|
8148
8139
|
"edit_comments": {
|
|
8149
8140
|
"anyOf": [
|
|
@@ -10590,6 +10581,65 @@
|
|
|
10590
10581
|
"title": "SessionTranscriptionResponse",
|
|
10591
10582
|
"description": "Text transcript of a given session."
|
|
10592
10583
|
},
|
|
10584
|
+
"StaticToolParameter": {
|
|
10585
|
+
"properties": {
|
|
10586
|
+
"name": {
|
|
10587
|
+
"type": "string",
|
|
10588
|
+
"title": "Name",
|
|
10589
|
+
"description": "The name of the parameter - must be unique within the tool."
|
|
10590
|
+
},
|
|
10591
|
+
"description": {
|
|
10592
|
+
"anyOf": [
|
|
10593
|
+
{
|
|
10594
|
+
"type": "string"
|
|
10595
|
+
},
|
|
10596
|
+
{
|
|
10597
|
+
"type": "null"
|
|
10598
|
+
}
|
|
10599
|
+
],
|
|
10600
|
+
"title": "Description",
|
|
10601
|
+
"description": "The description of the parameter."
|
|
10602
|
+
},
|
|
10603
|
+
"required": {
|
|
10604
|
+
"type": "boolean",
|
|
10605
|
+
"title": "Required",
|
|
10606
|
+
"description": "Whether the parameter is required to have a value assigned."
|
|
10607
|
+
},
|
|
10608
|
+
"type": {
|
|
10609
|
+
"$ref": "#/components/schemas/StaticToolParameterType",
|
|
10610
|
+
"description": "The expected type for the parameter."
|
|
10611
|
+
},
|
|
10612
|
+
"default": {
|
|
10613
|
+
"anyOf": [
|
|
10614
|
+
{},
|
|
10615
|
+
{
|
|
10616
|
+
"type": "null"
|
|
10617
|
+
}
|
|
10618
|
+
],
|
|
10619
|
+
"title": "Default",
|
|
10620
|
+
"description": "The default value for the parameter. If `type` is string, must be a string. If `type` is int, must be an int. If `type` is boolean, must be a boolean. If `type` is data_source_list, must be a list of strings (data source names)."
|
|
10621
|
+
}
|
|
10622
|
+
},
|
|
10623
|
+
"type": "object",
|
|
10624
|
+
"required": [
|
|
10625
|
+
"name",
|
|
10626
|
+
"required",
|
|
10627
|
+
"type"
|
|
10628
|
+
],
|
|
10629
|
+
"title": "StaticToolParameter",
|
|
10630
|
+
"description": "A parameter for the tool whose value should be set at config time."
|
|
10631
|
+
},
|
|
10632
|
+
"StaticToolParameterType": {
|
|
10633
|
+
"type": "string",
|
|
10634
|
+
"enum": [
|
|
10635
|
+
"string",
|
|
10636
|
+
"int",
|
|
10637
|
+
"boolean",
|
|
10638
|
+
"data_source_list"
|
|
10639
|
+
],
|
|
10640
|
+
"title": "StaticToolParameterType",
|
|
10641
|
+
"description": "The expected type for a static tool parameter."
|
|
10642
|
+
},
|
|
10593
10643
|
"SttProvider": {
|
|
10594
10644
|
"type": "string",
|
|
10595
10645
|
"enum": [
|
|
@@ -10805,6 +10855,21 @@
|
|
|
10805
10855
|
"title": "Defaults",
|
|
10806
10856
|
"description": "The default values for the parameters of the function/tool call."
|
|
10807
10857
|
},
|
|
10858
|
+
"static_parameters": {
|
|
10859
|
+
"anyOf": [
|
|
10860
|
+
{
|
|
10861
|
+
"items": {
|
|
10862
|
+
"$ref": "#/components/schemas/StaticToolParameter"
|
|
10863
|
+
},
|
|
10864
|
+
"type": "array"
|
|
10865
|
+
},
|
|
10866
|
+
{
|
|
10867
|
+
"type": "null"
|
|
10868
|
+
}
|
|
10869
|
+
],
|
|
10870
|
+
"title": "Static Parameters",
|
|
10871
|
+
"description": "Parameters for the tool whose values should be set at config time (i.e., not provided by the LLM)."
|
|
10872
|
+
},
|
|
10808
10873
|
"result": {
|
|
10809
10874
|
"anyOf": [
|
|
10810
10875
|
{},
|
|
@@ -10871,6 +10936,21 @@
|
|
|
10871
10936
|
"title": "Service Name",
|
|
10872
10937
|
"description": "The name of the service to which the tool belongs"
|
|
10873
10938
|
},
|
|
10939
|
+
"prompts_info": {
|
|
10940
|
+
"anyOf": [
|
|
10941
|
+
{
|
|
10942
|
+
"items": {
|
|
10943
|
+
"$ref": "#/components/schemas/ToolPromptInfo"
|
|
10944
|
+
},
|
|
10945
|
+
"type": "array"
|
|
10946
|
+
},
|
|
10947
|
+
{
|
|
10948
|
+
"type": "null"
|
|
10949
|
+
}
|
|
10950
|
+
],
|
|
10951
|
+
"title": "Prompts Info",
|
|
10952
|
+
"description": "IDs and names of the prompts linked to the tool"
|
|
10953
|
+
},
|
|
10874
10954
|
"last_updated": {
|
|
10875
10955
|
"type": "string",
|
|
10876
10956
|
"format": "date-time",
|
|
@@ -11082,6 +11162,33 @@
|
|
|
11082
11162
|
"title": "ToolParameterTransformCondition",
|
|
11083
11163
|
"description": "A condition to be met for a transform to be applied to the value of a tool parameter."
|
|
11084
11164
|
},
|
|
11165
|
+
"ToolPromptInfo": {
|
|
11166
|
+
"properties": {
|
|
11167
|
+
"id": {
|
|
11168
|
+
"type": "integer",
|
|
11169
|
+
"title": "Id",
|
|
11170
|
+
"description": "The ID of the prompt",
|
|
11171
|
+
"examples": [
|
|
11172
|
+
1
|
|
11173
|
+
]
|
|
11174
|
+
},
|
|
11175
|
+
"name": {
|
|
11176
|
+
"type": "string",
|
|
11177
|
+
"title": "Name",
|
|
11178
|
+
"description": "The name of the prompt",
|
|
11179
|
+
"examples": [
|
|
11180
|
+
"Test Prompt"
|
|
11181
|
+
]
|
|
11182
|
+
}
|
|
11183
|
+
},
|
|
11184
|
+
"type": "object",
|
|
11185
|
+
"required": [
|
|
11186
|
+
"id",
|
|
11187
|
+
"name"
|
|
11188
|
+
],
|
|
11189
|
+
"title": "ToolPromptInfo",
|
|
11190
|
+
"description": "Information about a prompt linked to a tool."
|
|
11191
|
+
},
|
|
11085
11192
|
"ToolProperties": {
|
|
11086
11193
|
"type": "string",
|
|
11087
11194
|
"enum": [
|
|
@@ -11143,6 +11250,21 @@
|
|
|
11143
11250
|
"title": "Service Name",
|
|
11144
11251
|
"description": "The name of the service to which the tool belongs"
|
|
11145
11252
|
},
|
|
11253
|
+
"prompts_info": {
|
|
11254
|
+
"anyOf": [
|
|
11255
|
+
{
|
|
11256
|
+
"items": {
|
|
11257
|
+
"$ref": "#/components/schemas/ToolPromptInfo"
|
|
11258
|
+
},
|
|
11259
|
+
"type": "array"
|
|
11260
|
+
},
|
|
11261
|
+
{
|
|
11262
|
+
"type": "null"
|
|
11263
|
+
}
|
|
11264
|
+
],
|
|
11265
|
+
"title": "Prompts Info",
|
|
11266
|
+
"description": "IDs and names of the prompts linked to the tool"
|
|
11267
|
+
},
|
|
11146
11268
|
"last_updated": {
|
|
11147
11269
|
"type": "string",
|
|
11148
11270
|
"format": "date-time",
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.2",
|
|
60
|
-
sdkVersion: "0.1.0-alpha.
|
|
61
|
-
genVersion: "2.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.44",
|
|
61
|
+
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.44 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -31,6 +31,12 @@ import {
|
|
|
31
31
|
PromptResponse$Outbound,
|
|
32
32
|
PromptResponse$outboundSchema,
|
|
33
33
|
} from "./promptresponse.js";
|
|
34
|
+
import {
|
|
35
|
+
ToolResponse,
|
|
36
|
+
ToolResponse$inboundSchema,
|
|
37
|
+
ToolResponse$Outbound,
|
|
38
|
+
ToolResponse$outboundSchema,
|
|
39
|
+
} from "./toolresponse.js";
|
|
34
40
|
|
|
35
41
|
/**
|
|
36
42
|
* When a user interacts with the Syllable system, they do so by communicating with an agent.
|
|
@@ -69,7 +75,7 @@ export type AgentResponse = {
|
|
|
69
75
|
*/
|
|
70
76
|
timezone: string;
|
|
71
77
|
/**
|
|
72
|
-
*
|
|
78
|
+
* User-configured parameter values for the agent's tools
|
|
73
79
|
*/
|
|
74
80
|
promptToolDefaults?: Array<AgentToolDefaults> | undefined;
|
|
75
81
|
/**
|
|
@@ -112,6 +118,10 @@ export type AgentResponse = {
|
|
|
112
118
|
* Channel targets associated with the agent
|
|
113
119
|
*/
|
|
114
120
|
channelTargets?: Array<ChannelTargetResponse> | null | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Tools associated with the agent
|
|
123
|
+
*/
|
|
124
|
+
tools?: Array<ToolResponse> | null | undefined;
|
|
115
125
|
};
|
|
116
126
|
|
|
117
127
|
/** @internal */
|
|
@@ -140,6 +150,7 @@ export const AgentResponse$inboundSchema: z.ZodType<
|
|
|
140
150
|
channel_targets: z.nullable(
|
|
141
151
|
z.array(z.lazy(() => ChannelTargetResponse$inboundSchema)),
|
|
142
152
|
).optional(),
|
|
153
|
+
tools: z.nullable(z.array(ToolResponse$inboundSchema)).optional(),
|
|
143
154
|
}).transform((v) => {
|
|
144
155
|
return remap$(v, {
|
|
145
156
|
"prompt_id": "promptId",
|
|
@@ -174,6 +185,7 @@ export type AgentResponse$Outbound = {
|
|
|
174
185
|
prompt?: PromptResponse$Outbound | null | undefined;
|
|
175
186
|
custom_message?: CustomMessageResponse$Outbound | null | undefined;
|
|
176
187
|
channel_targets?: Array<ChannelTargetResponse$Outbound> | null | undefined;
|
|
188
|
+
tools?: Array<ToolResponse$Outbound> | null | undefined;
|
|
177
189
|
};
|
|
178
190
|
|
|
179
191
|
/** @internal */
|
|
@@ -202,6 +214,7 @@ export const AgentResponse$outboundSchema: z.ZodType<
|
|
|
202
214
|
channelTargets: z.nullable(
|
|
203
215
|
z.array(z.lazy(() => ChannelTargetResponse$outboundSchema)),
|
|
204
216
|
).optional(),
|
|
217
|
+
tools: z.nullable(z.array(ToolResponse$outboundSchema)).optional(),
|
|
205
218
|
}).transform((v) => {
|
|
206
219
|
return remap$(v, {
|
|
207
220
|
promptId: "prompt_id",
|
|
@@ -26,9 +26,9 @@ export type DataSourceCreateRequest = {
|
|
|
26
26
|
*/
|
|
27
27
|
chunk: boolean;
|
|
28
28
|
/**
|
|
29
|
-
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
29
|
+
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\n\n').
|
|
30
30
|
*/
|
|
31
|
-
chunkDelimiter?: string |
|
|
31
|
+
chunkDelimiter?: string | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Information that the data source will provide to the agent accessing it.
|
|
34
34
|
*/
|
|
@@ -45,7 +45,7 @@ export const DataSourceCreateRequest$inboundSchema: z.ZodType<
|
|
|
45
45
|
description: z.nullable(z.string()).optional(),
|
|
46
46
|
labels: z.array(z.string()).optional(),
|
|
47
47
|
chunk: z.boolean(),
|
|
48
|
-
chunk_delimiter: z.
|
|
48
|
+
chunk_delimiter: z.string().default("\n\n"),
|
|
49
49
|
text: z.string(),
|
|
50
50
|
}).transform((v) => {
|
|
51
51
|
return remap$(v, {
|
|
@@ -59,7 +59,7 @@ export type DataSourceCreateRequest$Outbound = {
|
|
|
59
59
|
description?: string | null | undefined;
|
|
60
60
|
labels?: Array<string> | undefined;
|
|
61
61
|
chunk: boolean;
|
|
62
|
-
chunk_delimiter
|
|
62
|
+
chunk_delimiter: string;
|
|
63
63
|
text: string;
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -73,7 +73,7 @@ export const DataSourceCreateRequest$outboundSchema: z.ZodType<
|
|
|
73
73
|
description: z.nullable(z.string()).optional(),
|
|
74
74
|
labels: z.array(z.string()).optional(),
|
|
75
75
|
chunk: z.boolean(),
|
|
76
|
-
chunkDelimiter: z.
|
|
76
|
+
chunkDelimiter: z.string().default("\n\n"),
|
|
77
77
|
text: z.string(),
|
|
78
78
|
}).transform((v) => {
|
|
79
79
|
return remap$(v, {
|
|
@@ -29,9 +29,9 @@ export type DataSourceDetailResponse = {
|
|
|
29
29
|
*/
|
|
30
30
|
chunk: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
32
|
+
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\n\n').
|
|
33
33
|
*/
|
|
34
|
-
chunkDelimiter?: string |
|
|
34
|
+
chunkDelimiter?: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The comments for the most recent edit to the data source
|
|
37
37
|
*/
|
|
@@ -60,7 +60,7 @@ export const DataSourceDetailResponse$inboundSchema: z.ZodType<
|
|
|
60
60
|
description: z.nullable(z.string()).optional(),
|
|
61
61
|
labels: z.array(z.string()).optional(),
|
|
62
62
|
chunk: z.boolean(),
|
|
63
|
-
chunk_delimiter: z.
|
|
63
|
+
chunk_delimiter: z.string().default("\n\n"),
|
|
64
64
|
edit_comments: z.nullable(z.string()).optional(),
|
|
65
65
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
66
66
|
last_updated_by: z.nullable(z.string()),
|
|
@@ -80,7 +80,7 @@ export type DataSourceDetailResponse$Outbound = {
|
|
|
80
80
|
description?: string | null | undefined;
|
|
81
81
|
labels?: Array<string> | undefined;
|
|
82
82
|
chunk: boolean;
|
|
83
|
-
chunk_delimiter
|
|
83
|
+
chunk_delimiter: string;
|
|
84
84
|
edit_comments?: string | null | undefined;
|
|
85
85
|
updated_at: string;
|
|
86
86
|
last_updated_by: string | null;
|
|
@@ -97,7 +97,7 @@ export const DataSourceDetailResponse$outboundSchema: z.ZodType<
|
|
|
97
97
|
description: z.nullable(z.string()).optional(),
|
|
98
98
|
labels: z.array(z.string()).optional(),
|
|
99
99
|
chunk: z.boolean(),
|
|
100
|
-
chunkDelimiter: z.
|
|
100
|
+
chunkDelimiter: z.string().default("\n\n"),
|
|
101
101
|
editComments: z.nullable(z.string()).optional(),
|
|
102
102
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
103
103
|
lastUpdatedBy: z.nullable(z.string()),
|
|
@@ -29,9 +29,9 @@ export type DataSourceMetadataResponse = {
|
|
|
29
29
|
*/
|
|
30
30
|
chunk: boolean;
|
|
31
31
|
/**
|
|
32
|
-
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
32
|
+
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\n\n').
|
|
33
33
|
*/
|
|
34
|
-
chunkDelimiter?: string |
|
|
34
|
+
chunkDelimiter?: string | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* The comments for the most recent edit to the data source
|
|
37
37
|
*/
|
|
@@ -56,7 +56,7 @@ export const DataSourceMetadataResponse$inboundSchema: z.ZodType<
|
|
|
56
56
|
description: z.nullable(z.string()).optional(),
|
|
57
57
|
labels: z.array(z.string()).optional(),
|
|
58
58
|
chunk: z.boolean(),
|
|
59
|
-
chunk_delimiter: z.
|
|
59
|
+
chunk_delimiter: z.string().default("\n\n"),
|
|
60
60
|
edit_comments: z.nullable(z.string()).optional(),
|
|
61
61
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
62
62
|
last_updated_by: z.nullable(z.string()),
|
|
@@ -75,7 +75,7 @@ export type DataSourceMetadataResponse$Outbound = {
|
|
|
75
75
|
description?: string | null | undefined;
|
|
76
76
|
labels?: Array<string> | undefined;
|
|
77
77
|
chunk: boolean;
|
|
78
|
-
chunk_delimiter
|
|
78
|
+
chunk_delimiter: string;
|
|
79
79
|
edit_comments?: string | null | undefined;
|
|
80
80
|
updated_at: string;
|
|
81
81
|
last_updated_by: string | null;
|
|
@@ -91,7 +91,7 @@ export const DataSourceMetadataResponse$outboundSchema: z.ZodType<
|
|
|
91
91
|
description: z.nullable(z.string()).optional(),
|
|
92
92
|
labels: z.array(z.string()).optional(),
|
|
93
93
|
chunk: z.boolean(),
|
|
94
|
-
chunkDelimiter: z.
|
|
94
|
+
chunkDelimiter: z.string().default("\n\n"),
|
|
95
95
|
editComments: z.nullable(z.string()).optional(),
|
|
96
96
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
97
97
|
lastUpdatedBy: z.nullable(z.string()),
|
|
@@ -26,9 +26,9 @@ export type DataSourceUpdateRequest = {
|
|
|
26
26
|
*/
|
|
27
27
|
chunk: boolean;
|
|
28
28
|
/**
|
|
29
|
-
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks.
|
|
29
|
+
* String that should be treated as delimiter between intended chunks if chunk == True. This string will not be included in any chunks. Defaults to a blank line ('\n\n').
|
|
30
30
|
*/
|
|
31
|
-
chunkDelimiter?: string |
|
|
31
|
+
chunkDelimiter?: string | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* The comments for the most recent edit to the data source
|
|
34
34
|
*/
|
|
@@ -49,7 +49,7 @@ export const DataSourceUpdateRequest$inboundSchema: z.ZodType<
|
|
|
49
49
|
description: z.nullable(z.string()).optional(),
|
|
50
50
|
labels: z.array(z.string()).optional(),
|
|
51
51
|
chunk: z.boolean(),
|
|
52
|
-
chunk_delimiter: z.
|
|
52
|
+
chunk_delimiter: z.string().default("\n\n"),
|
|
53
53
|
edit_comments: z.nullable(z.string()).optional(),
|
|
54
54
|
text: z.string(),
|
|
55
55
|
}).transform((v) => {
|
|
@@ -65,7 +65,7 @@ export type DataSourceUpdateRequest$Outbound = {
|
|
|
65
65
|
description?: string | null | undefined;
|
|
66
66
|
labels?: Array<string> | undefined;
|
|
67
67
|
chunk: boolean;
|
|
68
|
-
chunk_delimiter
|
|
68
|
+
chunk_delimiter: string;
|
|
69
69
|
edit_comments?: string | null | undefined;
|
|
70
70
|
text: string;
|
|
71
71
|
};
|
|
@@ -80,7 +80,7 @@ export const DataSourceUpdateRequest$outboundSchema: z.ZodType<
|
|
|
80
80
|
description: z.nullable(z.string()).optional(),
|
|
81
81
|
labels: z.array(z.string()).optional(),
|
|
82
82
|
chunk: z.boolean(),
|
|
83
|
-
chunkDelimiter: z.
|
|
83
|
+
chunkDelimiter: z.string().default("\n\n"),
|
|
84
84
|
editComments: z.nullable(z.string()).optional(),
|
|
85
85
|
text: z.string(),
|
|
86
86
|
}).transform((v) => {
|
|
@@ -75,6 +75,8 @@ export * from "./sessionproperties.js";
|
|
|
75
75
|
export * from "./sessionrecordingresponse.js";
|
|
76
76
|
export * from "./sessiontext.js";
|
|
77
77
|
export * from "./sessiontranscriptionresponse.js";
|
|
78
|
+
export * from "./statictoolparameter.js";
|
|
79
|
+
export * from "./statictoolparametertype.js";
|
|
78
80
|
export * from "./sttprovider.js";
|
|
79
81
|
export * from "./targetmodes.js";
|
|
80
82
|
export * from "./testmessage.js";
|
|
@@ -89,6 +91,7 @@ export * from "./toolhttpmethod.js";
|
|
|
89
91
|
export * from "./toolparameterdefault.js";
|
|
90
92
|
export * from "./toolparametertransform.js";
|
|
91
93
|
export * from "./toolparametertransformcondition.js";
|
|
94
|
+
export * from "./toolpromptinfo.js";
|
|
92
95
|
export * from "./toolproperties.js";
|
|
93
96
|
export * from "./toolresponse.js";
|
|
94
97
|
export * from "./toolupdaterequest.js";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
StaticToolParameterType,
|
|
11
|
+
StaticToolParameterType$inboundSchema,
|
|
12
|
+
StaticToolParameterType$outboundSchema,
|
|
13
|
+
} from "./statictoolparametertype.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A parameter for the tool whose value should be set at config time.
|
|
17
|
+
*/
|
|
18
|
+
export type StaticToolParameter = {
|
|
19
|
+
/**
|
|
20
|
+
* The name of the parameter - must be unique within the tool.
|
|
21
|
+
*/
|
|
22
|
+
name: string;
|
|
23
|
+
/**
|
|
24
|
+
* The description of the parameter.
|
|
25
|
+
*/
|
|
26
|
+
description?: string | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Whether the parameter is required to have a value assigned.
|
|
29
|
+
*/
|
|
30
|
+
required: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The expected type for a static tool parameter.
|
|
33
|
+
*/
|
|
34
|
+
type: StaticToolParameterType;
|
|
35
|
+
/**
|
|
36
|
+
* The default value for the parameter. If `type` is string, must be a string. If `type` is int, must be an int. If `type` is boolean, must be a boolean. If `type` is data_source_list, must be a list of strings (data source names).
|
|
37
|
+
*/
|
|
38
|
+
default?: any | null | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const StaticToolParameter$inboundSchema: z.ZodType<
|
|
43
|
+
StaticToolParameter,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
name: z.string(),
|
|
48
|
+
description: z.nullable(z.string()).optional(),
|
|
49
|
+
required: z.boolean(),
|
|
50
|
+
type: StaticToolParameterType$inboundSchema,
|
|
51
|
+
default: z.nullable(z.any()).optional(),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type StaticToolParameter$Outbound = {
|
|
56
|
+
name: string;
|
|
57
|
+
description?: string | null | undefined;
|
|
58
|
+
required: boolean;
|
|
59
|
+
type: string;
|
|
60
|
+
default?: any | null | undefined;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const StaticToolParameter$outboundSchema: z.ZodType<
|
|
65
|
+
StaticToolParameter$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
StaticToolParameter
|
|
68
|
+
> = z.object({
|
|
69
|
+
name: z.string(),
|
|
70
|
+
description: z.nullable(z.string()).optional(),
|
|
71
|
+
required: z.boolean(),
|
|
72
|
+
type: StaticToolParameterType$outboundSchema,
|
|
73
|
+
default: z.nullable(z.any()).optional(),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace StaticToolParameter$ {
|
|
81
|
+
/** @deprecated use `StaticToolParameter$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = StaticToolParameter$inboundSchema;
|
|
83
|
+
/** @deprecated use `StaticToolParameter$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = StaticToolParameter$outboundSchema;
|
|
85
|
+
/** @deprecated use `StaticToolParameter$Outbound` instead. */
|
|
86
|
+
export type Outbound = StaticToolParameter$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function staticToolParameterToJSON(
|
|
90
|
+
staticToolParameter: StaticToolParameter,
|
|
91
|
+
): string {
|
|
92
|
+
return JSON.stringify(
|
|
93
|
+
StaticToolParameter$outboundSchema.parse(staticToolParameter),
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function staticToolParameterFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<StaticToolParameter, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => StaticToolParameter$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'StaticToolParameter' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|