@agentica/core 0.33.2 → 0.34.1
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/lib/functional/assertHttpController.js +1 -6
- package/lib/functional/assertHttpController.js.map +1 -1
- package/lib/functional/assertHttpLlmApplication.js +1 -6
- package/lib/functional/assertHttpLlmApplication.js.map +1 -1
- package/lib/functional/validateHttpController.js +1 -5
- package/lib/functional/validateHttpController.js.map +1 -1
- package/lib/functional/validateHttpLlmApplication.js +1 -5
- package/lib/functional/validateHttpLlmApplication.js.map +1 -1
- package/lib/index.mjs +51 -45
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/initialize.js +50 -26
- package/lib/orchestrate/initialize.js.map +1 -1
- package/package.json +6 -6
package/lib/index.mjs
CHANGED
|
@@ -2010,7 +2010,7 @@ const FUNCTION = {
|
|
|
2010
2010
|
additionalProperties: false,
|
|
2011
2011
|
$defs: {
|
|
2012
2012
|
IHttpLlmFunctionchatgpt: {
|
|
2013
|
-
description:
|
|
2013
|
+
description: 'LLM function calling schema from HTTP (OpenAPI) operation.\n\n`IHttpLlmFunction` is a data structure representing a function converted from\nthe {@link OpenApi.IOperation OpenAPI operation}, used for the LLM (Large\nLanguage Model) function calling. It\'s a typical RPC (Remote Procedure Call)\nstructure containing the function {@link name}, {@link parameters}, and\n{@link output return type}.\n\nIf you provide this `IHttpLlmFunction` data to the LLM provider like\n"OpenAI", the "OpenAI" will compose a function arguments by analyzing\nconversations with the user. With the LLM composed arguments, you can execute\nthe function through {@link LlmFetcher.execute} and get the result.\n\nFor reference, different between `IHttpLlmFunction` and its origin source\n{@link OpenApi.IOperation} is, `IHttpLlmFunction` has converted every type\nschema information from {@link OpenApi.IJsonSchema} to {@link ILlmSchemaV3} to\nescape {@link OpenApi.IJsonSchema.IReference reference types}, and downgrade\nthe version of the JSON schema to OpenAPI 3.0. It\'s because LLM function call\nfeature cannot understand both reference types and OpenAPI 3.1\nspecification.\n\nAdditionally, the properties\' rule is:\n\n- `pathParameters`: Path parameters of {@link OpenApi.IOperation.parameters}\n- `query`: Query parameter of {@link IHttpMigrateRoute.query}\n- `body`: Body parameter of {@link IHttpMigrateRoute.body}\n\n```typescript\n{\n ...pathParameters,\n query,\n body,\n}\n```',
|
|
2014
2014
|
type: "object",
|
|
2015
2015
|
properties: {
|
|
2016
2016
|
method: {
|
|
@@ -2027,21 +2027,23 @@ const FUNCTION = {
|
|
|
2027
2027
|
type: "string"
|
|
2028
2028
|
},
|
|
2029
2029
|
parameters: {
|
|
2030
|
+
description: "List of parameter types.\n\nIf you've configured {@link IHttpLlmApplication.IOptions.keyword} as `true`,\nnumber of {@link IHttpLlmFunction.parameters} are always 1 and the first\nparameter's type is always {@link ILlmSchemaV3.IObject}. The properties'\nrule is:\n\n- `pathParameters`: Path parameters of {@link IHttpMigrateRoute.parameters}\n- `query`: Query parameter of {@link IHttpMigrateRoute.query}\n- `body`: Body parameter of {@link IHttpMigrateRoute.body}\n\n```typescript\n{\n ...pathParameters,\n query,\n body,\n}\n```\n\nOtherwise, the parameters would be multiple, and the sequence of the\nparameters are following below rules:\n\n```typescript\n[\n ...pathParameters,\n ...(query ? [query] : []),\n ...(body ? [body] : []),\n];\n```",
|
|
2030
2031
|
$ref: "#/$defs/IChatGptSchema.IParameters"
|
|
2031
2032
|
},
|
|
2032
2033
|
separated: {
|
|
2034
|
+
description: "Collection of separated parameters.\n\nFilled only when {@link IHttpLlmApplication.IOptions.separate} is\nconfigured.",
|
|
2033
2035
|
$ref: "#/$defs/IHttpLlmFunction.ISeparatedchatgpt"
|
|
2034
2036
|
},
|
|
2035
2037
|
output: {
|
|
2036
2038
|
description: "Expected return type.\n\nIf the target operation returns nothing (`void`), the `output` would be\n`undefined`.",
|
|
2037
2039
|
anyOf: [ {
|
|
2038
|
-
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2039
|
-
}, {
|
|
2040
2040
|
$ref: "#/$defs/IChatGptSchema.INumber"
|
|
2041
2041
|
}, {
|
|
2042
2042
|
$ref: "#/$defs/IChatGptSchema.IInteger"
|
|
2043
2043
|
}, {
|
|
2044
2044
|
$ref: "#/$defs/IChatGptSchema.IBoolean"
|
|
2045
|
+
}, {
|
|
2046
|
+
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2045
2047
|
}, {
|
|
2046
2048
|
$ref: "#/$defs/IChatGptSchema.IArray"
|
|
2047
2049
|
}, {
|
|
@@ -2075,10 +2077,11 @@ const FUNCTION = {
|
|
|
2075
2077
|
required: [ "method", "path", "name", "parameters" ]
|
|
2076
2078
|
},
|
|
2077
2079
|
"IChatGptSchema.IParameters": {
|
|
2078
|
-
description: "Type for function parameters.\n\n`IChatGptSchema.IParameters` defines a function's parameters as
|
|
2080
|
+
description: "Type for function parameters.\n\n`IChatGptSchema.IParameters` defines a function's parameters as a keyword\nobject type, where each property represents a named parameter.\n\nIt can also be used for structured output metadata to define the expected\nformat of ChatGPT responses.",
|
|
2079
2081
|
type: "object",
|
|
2080
2082
|
properties: {
|
|
2081
2083
|
$defs: {
|
|
2084
|
+
description: "Collection of the named types.",
|
|
2082
2085
|
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
2083
2086
|
},
|
|
2084
2087
|
additionalProperties: {
|
|
@@ -2092,6 +2095,7 @@ const FUNCTION = {
|
|
|
2092
2095
|
enum: [ "object" ]
|
|
2093
2096
|
},
|
|
2094
2097
|
properties: {
|
|
2098
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's regular\nproperties. The key is the name of the regular property, and the value is\nthe type schema info.",
|
|
2095
2099
|
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
2096
2100
|
},
|
|
2097
2101
|
required: {
|
|
@@ -2117,6 +2121,7 @@ const FUNCTION = {
|
|
|
2117
2121
|
description: "Example value."
|
|
2118
2122
|
},
|
|
2119
2123
|
examples: {
|
|
2124
|
+
description: "List of example values as key-value pairs.",
|
|
2120
2125
|
$ref: "#/$defs/Recordstringany"
|
|
2121
2126
|
}
|
|
2122
2127
|
},
|
|
@@ -2132,7 +2137,7 @@ const FUNCTION = {
|
|
|
2132
2137
|
}
|
|
2133
2138
|
},
|
|
2134
2139
|
IChatGptSchema: {
|
|
2135
|
-
description: 'Type schema info
|
|
2140
|
+
description: 'Type schema info for OpenAI function calling.\n\n`IChatGptSchema` is a type schema info for OpenAI function calling. The type\nname "ChatGpt" is intentionally used to avoid confusion with "OpenAPI"\nspecification, even though this is designed for OpenAI models.\n\n`IChatGptSchema` basically follows the JSON schema definition of the OpenAPI\nv3.1 specification; {@link OpenApiV3_1.IJsonSchema}. However, it deviates from\nthe standard JSON schema specification and omits many features when used in\n{@link IChatGptSchema.IConfig.strict} mode for OpenAI function calling.\n\n`IChatGptSchema` supports all JSON schema features through workaround\nexpressions using JSDoc tags in the `description` property, so using\n`IChatGptSchema` does not degrade function calling performance even in strict\nmode.\n\nHere is the list of how `IChatGptSchema` is different with the OpenAPI v3.1\nJSON schema:\n\n- Decompose mixed type: {@link OpenApiV3_1.IJsonSchema.IMixed}\n- Resolve nullable property:\n {@link OpenApiV3_1.IJsonSchema.__ISignificant.nullable}\n- Tuple type is banned: {@link OpenApiV3_1.IJsonSchema.ITuple.prefixItems}\n- Constant type is banned: {@link OpenApiV3_1.IJsonSchema.IConstant}\n- Merge {@link OpenApiV3_1.IJsonSchema.IOneOf} to {@link IChatGptSchema.IAnyOf}\n- Merge {@link OpenApiV3_1.IJsonSchema.IAllOf} to {@link IChatGptSchema.IObject}\n- Merge {@link OpenApiV3_1.IJsonSchema.IRecursiveReference} to\n {@link IChatGptSchema.IReference}\n- When {@link IChatGptSchema.IConfig.strict} mode:\n\n - Every object properties must be required\n - Do not allow {@link IChatGptSchema.IObject.additionalProperties}\n\nCompared to {@link OpenApi.IJsonSchema}, the emended JSON schema\nspecification:\n\n- {@link IChatGptSchema.IAnyOf} instead of {@link OpenApi.IJsonSchema.IOneOf}\n- {@link IChatGptSchema.IParameters.$defs} instead of\n {@link OpenApi.IComponents.schemas}\n- {@link IChatGptSchema.IString.enum} instead of\n {@link OpenApi.IJsonSchema.IConstant}\n- {@link IChatGptSchema.additionalProperties} is fixed to `false` in strict mode\n- {@link IChatGptSchema.properties} and {@link IChatGptSchema.required} are\n always defined\n- No tuple type {@link OpenApi.IJsonSchema.ITuple} support\n- When {@link IChatGptSchema.IConfig.strict} mode:\n\n - Every object properties must be required\n - Do not allow {@link IChatGptSchema.IObject.additionalProperties}\n\nFor reference, if you compose the `IChatGptSchema` type with the\n{@link IChatGptSchema.IConfig.reference} `false` option (default is `false`),\nonly recursively named types are archived into the\n{@link IChatGptSchema.IParameters.$defs}, and others are escaped from the\n{@link IChatGptSchema.IReference} type.\n\nAlso, OpenAI has banned the following constraint properties. Instead,\n`IChatGptSchema` fills the {@link IChatGptSchema.description} property with\nworkaround expressions using JSDoc tags like `"@format uuid"` to convey these\nconstraints:\n\n- {@link OpenApi.IJsonSchema.INumber.minimum}\n- {@link OpenApi.IJsonSchema.INumber.maximum}\n- {@link OpenApi.IJsonSchema.INumber.multipleOf}\n- {@link OpenApi.IJsonSchema.IString.minLength}\n- {@link OpenApi.IJsonSchema.IString.maxLength}\n- {@link OpenApi.IJsonSchema.IString.format}\n- {@link OpenApi.IJsonSchema.IString.pattern}\n- {@link OpenApi.IJsonSchema.IString.contentMediaType}\n- {@link OpenApi.IJsonSchema.IString.default}\n- {@link OpenApi.IJsonSchema.IArray.minItems}\n- {@link OpenApi.IJsonSchema.IArray.maxItems}\n- {@link OpenApi.IJsonSchema.IArray.unique}\n\nAdditionally, OpenAI cannot define the {@link IChatGptSchema.description}\nproperty for the {@link IChatGptSchema.IReference} type, and does not\nunderstand encapsulation of the {@link IChatGptSchema.IAnyOf} type. Therefore,\nthe {@link IChatGptSchema.description} is written to the parent object type,\nnot the reference type.\n\n```json\n{\n "type": "object",\n "description": "### Description of {@link something} property.\\n\\n> Hello?",\n "properties": {\n "something": {\n "$ref": "#/$defs/SomeObject"\n }\n }\n}\n```',
|
|
2136
2141
|
anyOf: [ {
|
|
2137
2142
|
$ref: "#/$defs/IChatGptSchema.IBoolean"
|
|
2138
2143
|
}, {
|
|
@@ -2156,7 +2161,7 @@ const FUNCTION = {
|
|
|
2156
2161
|
} ]
|
|
2157
2162
|
},
|
|
2158
2163
|
"IChatGptSchema.IBoolean": {
|
|
2159
|
-
description: "Boolean type info
|
|
2164
|
+
description: "Boolean type info.",
|
|
2160
2165
|
type: "object",
|
|
2161
2166
|
properties: {
|
|
2162
2167
|
enum: {
|
|
@@ -2187,6 +2192,7 @@ const FUNCTION = {
|
|
|
2187
2192
|
description: "Example value."
|
|
2188
2193
|
},
|
|
2189
2194
|
examples: {
|
|
2195
|
+
description: "List of example values as key-value pairs.",
|
|
2190
2196
|
$ref: "#/$defs/Recordstringany"
|
|
2191
2197
|
}
|
|
2192
2198
|
},
|
|
@@ -2200,7 +2206,7 @@ const FUNCTION = {
|
|
|
2200
2206
|
additionalProperties: {}
|
|
2201
2207
|
},
|
|
2202
2208
|
"IChatGptSchema.IInteger": {
|
|
2203
|
-
description: "Integer type info
|
|
2209
|
+
description: "Integer type info.",
|
|
2204
2210
|
type: "object",
|
|
2205
2211
|
properties: {
|
|
2206
2212
|
enum: {
|
|
@@ -2231,13 +2237,14 @@ const FUNCTION = {
|
|
|
2231
2237
|
description: "Example value."
|
|
2232
2238
|
},
|
|
2233
2239
|
examples: {
|
|
2240
|
+
description: "List of example values as key-value pairs.",
|
|
2234
2241
|
$ref: "#/$defs/Recordstringany"
|
|
2235
2242
|
}
|
|
2236
2243
|
},
|
|
2237
2244
|
required: [ "type" ]
|
|
2238
2245
|
},
|
|
2239
2246
|
"IChatGptSchema.INumber": {
|
|
2240
|
-
description: "Number (double) type info
|
|
2247
|
+
description: "Number (double) type info.",
|
|
2241
2248
|
type: "object",
|
|
2242
2249
|
properties: {
|
|
2243
2250
|
enum: {
|
|
@@ -2268,13 +2275,14 @@ const FUNCTION = {
|
|
|
2268
2275
|
description: "Example value."
|
|
2269
2276
|
},
|
|
2270
2277
|
examples: {
|
|
2278
|
+
description: "List of example values as key-value pairs.",
|
|
2271
2279
|
$ref: "#/$defs/Recordstringany"
|
|
2272
2280
|
}
|
|
2273
2281
|
},
|
|
2274
2282
|
required: [ "type" ]
|
|
2275
2283
|
},
|
|
2276
2284
|
"IChatGptSchema.IString": {
|
|
2277
|
-
description: "String type info
|
|
2285
|
+
description: "String type info.",
|
|
2278
2286
|
type: "object",
|
|
2279
2287
|
properties: {
|
|
2280
2288
|
enum: {
|
|
@@ -2284,6 +2292,10 @@ const FUNCTION = {
|
|
|
2284
2292
|
type: "string"
|
|
2285
2293
|
}
|
|
2286
2294
|
},
|
|
2295
|
+
default: {
|
|
2296
|
+
description: "Default value.",
|
|
2297
|
+
type: "string"
|
|
2298
|
+
},
|
|
2287
2299
|
type: {
|
|
2288
2300
|
description: "Discriminator value of the type.",
|
|
2289
2301
|
type: "string",
|
|
@@ -2305,16 +2317,18 @@ const FUNCTION = {
|
|
|
2305
2317
|
description: "Example value."
|
|
2306
2318
|
},
|
|
2307
2319
|
examples: {
|
|
2320
|
+
description: "List of example values as key-value pairs.",
|
|
2308
2321
|
$ref: "#/$defs/Recordstringany"
|
|
2309
2322
|
}
|
|
2310
2323
|
},
|
|
2311
2324
|
required: [ "type" ]
|
|
2312
2325
|
},
|
|
2313
2326
|
"IChatGptSchema.IArray": {
|
|
2314
|
-
description: "Array type info
|
|
2327
|
+
description: "Array type info.",
|
|
2315
2328
|
type: "object",
|
|
2316
2329
|
properties: {
|
|
2317
2330
|
items: {
|
|
2331
|
+
description: "Items type info.\n\nThe `items` means the type of the array elements. In other words, it is\nthe type schema info of the `T` in the TypeScript array type `Array<T>`.",
|
|
2318
2332
|
$ref: "#/$defs/IChatGptSchema"
|
|
2319
2333
|
},
|
|
2320
2334
|
type: {
|
|
@@ -2338,30 +2352,32 @@ const FUNCTION = {
|
|
|
2338
2352
|
description: "Example value."
|
|
2339
2353
|
},
|
|
2340
2354
|
examples: {
|
|
2355
|
+
description: "List of example values as key-value pairs.",
|
|
2341
2356
|
$ref: "#/$defs/Recordstringany"
|
|
2342
2357
|
}
|
|
2343
2358
|
},
|
|
2344
2359
|
required: [ "items", "type" ]
|
|
2345
2360
|
},
|
|
2346
2361
|
"IChatGptSchema.IObject": {
|
|
2347
|
-
description: "Object type info
|
|
2362
|
+
description: "Object type info.",
|
|
2348
2363
|
type: "object",
|
|
2349
2364
|
properties: {
|
|
2350
2365
|
properties: {
|
|
2366
|
+
description: "Properties of the object.\n\nThe `properties` means a list of key-value pairs of the object's regular\nproperties. The key is the name of the regular property, and the value is\nthe type schema info.",
|
|
2351
2367
|
$ref: "#/$defs/RecordstringIChatGptSchema"
|
|
2352
2368
|
},
|
|
2353
2369
|
additionalProperties: {
|
|
2354
|
-
description: "Additional properties information.\n\nThe `additionalProperties` defines the type schema for additional\nproperties that are not listed in the {@link properties}.\n\nNote: If you've configured {@link IChatGptSchema.IConfig.strict} as\n`true`, ChatGPT function calling does not support dynamic key typed\nproperties, so `additionalProperties` is always `false`.",
|
|
2370
|
+
description: "Additional properties information.\n\nThe `additionalProperties` defines the type schema for additional\nproperties that are not listed in the {@link properties}.\n\nIf the value is `true`, it means that the additional properties are not\nrestricted. They can be any type. Otherwise, if the value is\n{@link IChatGptSchema} type, it means that the additional properties must\nfollow the type schema info.\n\n- `true`: `Record<string, any>`\n- `IChatGptSchema`: `Record<string, T>`\n\nNote: If you've configured {@link IChatGptSchema.IConfig.strict} as\n`true`, ChatGPT function calling does not support dynamic key typed\nproperties, so `additionalProperties` is always `false`.",
|
|
2355
2371
|
anyOf: [ {
|
|
2356
2372
|
type: "boolean"
|
|
2357
|
-
}, {
|
|
2358
|
-
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2359
2373
|
}, {
|
|
2360
2374
|
$ref: "#/$defs/IChatGptSchema.INumber"
|
|
2361
2375
|
}, {
|
|
2362
2376
|
$ref: "#/$defs/IChatGptSchema.IInteger"
|
|
2363
2377
|
}, {
|
|
2364
2378
|
$ref: "#/$defs/IChatGptSchema.IBoolean"
|
|
2379
|
+
}, {
|
|
2380
|
+
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2365
2381
|
}, {
|
|
2366
2382
|
$ref: "#/$defs/IChatGptSchema.IArray"
|
|
2367
2383
|
}, {
|
|
@@ -2404,17 +2420,18 @@ const FUNCTION = {
|
|
|
2404
2420
|
description: "Example value."
|
|
2405
2421
|
},
|
|
2406
2422
|
examples: {
|
|
2423
|
+
description: "List of example values as key-value pairs.",
|
|
2407
2424
|
$ref: "#/$defs/Recordstringany"
|
|
2408
2425
|
}
|
|
2409
2426
|
},
|
|
2410
2427
|
required: [ "properties", "required", "type" ]
|
|
2411
2428
|
},
|
|
2412
2429
|
"IChatGptSchema.IReference": {
|
|
2413
|
-
description: "Reference type directing to named schema
|
|
2430
|
+
description: "Reference type directing to named schema.",
|
|
2414
2431
|
type: "object",
|
|
2415
2432
|
properties: {
|
|
2416
2433
|
$ref: {
|
|
2417
|
-
description: "Reference to the named schema.\n\nThe `$ref` is a reference to a named schema. The format follows the\
|
|
2434
|
+
description: "Reference to the named schema.\n\nThe `$ref` is a reference to a named schema. The format follows the JSON\nPointer specification. In OpenAPI, the `$ref` starts with `#/$defs/`\nwhich indicates the type is stored in the\n{@link IChatGptSchema.IParameters.$defs} object.\n\n- `#/$defs/SomeObject`\n- `#/$defs/AnotherObject`",
|
|
2418
2435
|
type: "string"
|
|
2419
2436
|
},
|
|
2420
2437
|
title: {
|
|
@@ -2433,13 +2450,14 @@ const FUNCTION = {
|
|
|
2433
2450
|
description: "Example value."
|
|
2434
2451
|
},
|
|
2435
2452
|
examples: {
|
|
2453
|
+
description: "List of example values as key-value pairs.",
|
|
2436
2454
|
$ref: "#/$defs/Recordstringany"
|
|
2437
2455
|
}
|
|
2438
2456
|
},
|
|
2439
2457
|
required: [ "$ref" ]
|
|
2440
2458
|
},
|
|
2441
2459
|
"IChatGptSchema.IAnyOf": {
|
|
2442
|
-
description:
|
|
2460
|
+
description: "Union type.\n\n`IAnyOf` represents a union type in TypeScript (`A | B | C`).\n\nFor reference, even if your Swagger (or OpenAPI) document defines `anyOf`\ninstead of `oneOf`, {@link IChatGptSchema} forcibly converts it to `anyOf`\ntype.",
|
|
2443
2461
|
type: "object",
|
|
2444
2462
|
properties: {
|
|
2445
2463
|
anyOf: {
|
|
@@ -2447,13 +2465,13 @@ const FUNCTION = {
|
|
|
2447
2465
|
type: "array",
|
|
2448
2466
|
items: {
|
|
2449
2467
|
anyOf: [ {
|
|
2450
|
-
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2451
|
-
}, {
|
|
2452
2468
|
$ref: "#/$defs/IChatGptSchema.INumber"
|
|
2453
2469
|
}, {
|
|
2454
2470
|
$ref: "#/$defs/IChatGptSchema.IInteger"
|
|
2455
2471
|
}, {
|
|
2456
2472
|
$ref: "#/$defs/IChatGptSchema.IBoolean"
|
|
2473
|
+
}, {
|
|
2474
|
+
$ref: "#/$defs/IChatGptSchema.IString"
|
|
2457
2475
|
}, {
|
|
2458
2476
|
$ref: "#/$defs/IChatGptSchema.IArray"
|
|
2459
2477
|
}, {
|
|
@@ -2468,6 +2486,7 @@ const FUNCTION = {
|
|
|
2468
2486
|
}
|
|
2469
2487
|
},
|
|
2470
2488
|
"x-discriminator": {
|
|
2489
|
+
description: "Discriminator info of the union type.",
|
|
2471
2490
|
$ref: "#/$defs/IChatGptSchema.IAnyOf.IDiscriminator"
|
|
2472
2491
|
},
|
|
2473
2492
|
title: {
|
|
@@ -2486,13 +2505,14 @@ const FUNCTION = {
|
|
|
2486
2505
|
description: "Example value."
|
|
2487
2506
|
},
|
|
2488
2507
|
examples: {
|
|
2508
|
+
description: "List of example values as key-value pairs.",
|
|
2489
2509
|
$ref: "#/$defs/Recordstringany"
|
|
2490
2510
|
}
|
|
2491
2511
|
},
|
|
2492
2512
|
required: [ "anyOf" ]
|
|
2493
2513
|
},
|
|
2494
2514
|
"IChatGptSchema.IUnknown": {
|
|
2495
|
-
description: "Unknown, the `any` type
|
|
2515
|
+
description: "Unknown, the `any` type.",
|
|
2496
2516
|
type: "object",
|
|
2497
2517
|
properties: {
|
|
2498
2518
|
title: {
|
|
@@ -2511,13 +2531,14 @@ const FUNCTION = {
|
|
|
2511
2531
|
description: "Example value."
|
|
2512
2532
|
},
|
|
2513
2533
|
examples: {
|
|
2534
|
+
description: "List of example values as key-value pairs.",
|
|
2514
2535
|
$ref: "#/$defs/Recordstringany"
|
|
2515
2536
|
}
|
|
2516
2537
|
},
|
|
2517
2538
|
required: []
|
|
2518
2539
|
},
|
|
2519
2540
|
"IChatGptSchema.INull": {
|
|
2520
|
-
description: "Null type
|
|
2541
|
+
description: "Null type.",
|
|
2521
2542
|
type: "object",
|
|
2522
2543
|
properties: {
|
|
2523
2544
|
type: {
|
|
@@ -2541,13 +2562,14 @@ const FUNCTION = {
|
|
|
2541
2562
|
description: "Example value."
|
|
2542
2563
|
},
|
|
2543
2564
|
examples: {
|
|
2565
|
+
description: "List of example values as key-value pairs.",
|
|
2544
2566
|
$ref: "#/$defs/Recordstringany"
|
|
2545
2567
|
}
|
|
2546
2568
|
},
|
|
2547
2569
|
required: [ "type" ]
|
|
2548
2570
|
},
|
|
2549
2571
|
"IChatGptSchema.IAnyOf.IDiscriminator": {
|
|
2550
|
-
description: "Discriminator info of the union type
|
|
2572
|
+
description: "Discriminator info of the union type.",
|
|
2551
2573
|
type: "object",
|
|
2552
2574
|
properties: {
|
|
2553
2575
|
propertyName: {
|
|
@@ -2555,6 +2577,7 @@ const FUNCTION = {
|
|
|
2555
2577
|
type: "string"
|
|
2556
2578
|
},
|
|
2557
2579
|
mapping: {
|
|
2580
|
+
description: "Mapping of discriminator values to schema names.\n\nThis property is valid only for {@link IReference} typed\n{@link IAnyOf.anyOf} elements. Therefore, the `key` of `mapping` is the\ndiscriminator value, and the `value` of `mapping` is the schema name\nlike `#/components/schemas/SomeObject`.",
|
|
2558
2581
|
$ref: "#/$defs/Recordstringstring"
|
|
2559
2582
|
}
|
|
2560
2583
|
},
|
|
@@ -2570,10 +2593,11 @@ const FUNCTION = {
|
|
|
2570
2593
|
}
|
|
2571
2594
|
},
|
|
2572
2595
|
"IHttpLlmFunction.ISeparatedchatgpt": {
|
|
2573
|
-
description: "Collection of separated parameters
|
|
2596
|
+
description: "Collection of separated parameters.",
|
|
2574
2597
|
type: "object",
|
|
2575
2598
|
properties: {
|
|
2576
2599
|
llm: {
|
|
2600
|
+
description: "Parameters that would be composed by the LLM.\n\nEven though no property exists in the LLM side, the `llm` property would\nhave at least empty object type.",
|
|
2577
2601
|
$ref: "#/$defs/IChatGptSchema.IParameters"
|
|
2578
2602
|
},
|
|
2579
2603
|
human: {
|
|
@@ -3751,7 +3775,7 @@ function assertHttpController(props) {
|
|
|
3751
3775
|
}));
|
|
3752
3776
|
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
3753
3777
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
3754
|
-
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.
|
|
3778
|
+
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
3755
3779
|
const _io202 = input => Object.keys(input).every((key => {
|
|
3756
3780
|
const value = input[key];
|
|
3757
3781
|
if (undefined === value) return true;
|
|
@@ -12356,11 +12380,6 @@ function assertHttpController(props) {
|
|
|
12356
12380
|
path: _path + ".required",
|
|
12357
12381
|
expected: "(boolean | undefined)",
|
|
12358
12382
|
value: input.required
|
|
12359
|
-
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
12360
|
-
method: "typia.assert",
|
|
12361
|
-
path: _path + ".title",
|
|
12362
|
-
expected: "(string | undefined)",
|
|
12363
|
-
value: input.title
|
|
12364
12383
|
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
12365
12384
|
method: "typia.assert",
|
|
12366
12385
|
path: _path + ".description",
|
|
@@ -13123,7 +13142,7 @@ function assertHttpLlmApplication(props) {
|
|
|
13123
13142
|
}));
|
|
13124
13143
|
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
13125
13144
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
13126
|
-
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.
|
|
13145
|
+
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
13127
13146
|
const _io202 = input => Object.keys(input).every((key => {
|
|
13128
13147
|
const value = input[key];
|
|
13129
13148
|
if (undefined === value) return true;
|
|
@@ -21728,11 +21747,6 @@ function assertHttpLlmApplication(props) {
|
|
|
21728
21747
|
path: _path + ".required",
|
|
21729
21748
|
expected: "(boolean | undefined)",
|
|
21730
21749
|
value: input.required
|
|
21731
|
-
}, _errorFactory)) && (undefined === input.title || "string" === typeof input.title || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
21732
|
-
method: "typia.assert",
|
|
21733
|
-
path: _path + ".title",
|
|
21734
|
-
expected: "(string | undefined)",
|
|
21735
|
-
value: input.title
|
|
21736
21750
|
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
21737
21751
|
method: "typia.assert",
|
|
21738
21752
|
path: _path + ".description",
|
|
@@ -24090,7 +24104,7 @@ function validateHttpController(props) {
|
|
|
24090
24104
|
}));
|
|
24091
24105
|
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
24092
24106
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
24093
|
-
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.
|
|
24107
|
+
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
24094
24108
|
const _io202 = input => Object.keys(input).every((key => {
|
|
24095
24109
|
const value = input[key];
|
|
24096
24110
|
if (undefined === value) return true;
|
|
@@ -31069,10 +31083,6 @@ function validateHttpController(props) {
|
|
|
31069
31083
|
path: _path + ".required",
|
|
31070
31084
|
expected: "(boolean | undefined)",
|
|
31071
31085
|
value: input.required
|
|
31072
|
-
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
31073
|
-
path: _path + ".title",
|
|
31074
|
-
expected: "(string | undefined)",
|
|
31075
|
-
value: input.title
|
|
31076
31086
|
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
31077
31087
|
path: _path + ".description",
|
|
31078
31088
|
expected: "(string | undefined)",
|
|
@@ -31791,7 +31801,7 @@ function validateHttpLlmApplication(props) {
|
|
|
31791
31801
|
}));
|
|
31792
31802
|
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
31793
31803
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
31794
|
-
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.
|
|
31804
|
+
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
31795
31805
|
const _io202 = input => Object.keys(input).every((key => {
|
|
31796
31806
|
const value = input[key];
|
|
31797
31807
|
if (undefined === value) return true;
|
|
@@ -38770,10 +38780,6 @@ function validateHttpLlmApplication(props) {
|
|
|
38770
38780
|
path: _path + ".required",
|
|
38771
38781
|
expected: "(boolean | undefined)",
|
|
38772
38782
|
value: input.required
|
|
38773
|
-
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
38774
|
-
path: _path + ".title",
|
|
38775
|
-
expected: "(string | undefined)",
|
|
38776
|
-
value: input.title
|
|
38777
38783
|
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
38778
38784
|
path: _path + ".description",
|
|
38779
38785
|
expected: "(string | undefined)",
|