MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / schemaToStandard

Function schemaToStandard

packages/core/sdk/src/core-tools.ts:28–32  ·  view source on GitHub ↗
(schema: Schema.Decoder<A, I>)

Source from the content-addressed store, hash-verified

26import type { Tool } from "./tool";
27
28const schemaToStandard = <A, I>(schema: Schema.Decoder<A, I>): StaticToolSchema<A, I> =>
29 Schema.toStandardSchemaV1(Schema.toStandardJSONSchemaV1(schema) as never) as StaticToolSchema<
30 A,
31 I
32 >;
33
34const OwnerSchema = Schema.Literals(["org", "user"]);
35const OAuthGrantSchema = Schema.Literals(["authorization_code", "client_credentials"]);

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected