@inferencesh/sdk 0.12.0 → 0.13.0

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +19 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -5634,7 +5634,25 @@ export type ToolParameterProperties = {
5634
5634
  [key: string]: ToolParameterProperty;
5635
5635
  };
5636
5636
  export interface ToolParameterProperty {
5637
- type: ToolParamType;
5637
+ /**
5638
+ * Type is the JSON Schema type of the value. Empty when AnyOf is set: the
5639
+ * value then has one of several shapes, and naming a single type would be
5640
+ * telling the model something untrue about what it may send.
5641
+ */
5642
+ type?: ToolParamType;
5643
+ /**
5644
+ * AnyOf lists the shapes a value may take, each described as a property of
5645
+ * its own. Anthropic and OpenAI both accept anyOf in tool schemas. Before
5646
+ * this field existed the converter picked one branch and dropped the rest,
5647
+ * so an app that accepted "401" or 401 could only tell the model about one.
5648
+ */
5649
+ anyOf?: ToolParameterProperty[];
5650
+ /**
5651
+ * Enum is the closed set of values a scalar may take, kept as data so a
5652
+ * consumer choosing arguments does not have to parse it back out of the
5653
+ * description.
5654
+ */
5655
+ enum?: any[];
5638
5656
  title: string;
5639
5657
  description: string;
5640
5658
  properties?: ToolParameterProperties;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inferencesh/sdk",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",