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

Function schemaToStandard

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

Source from the content-addressed store, hash-verified

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

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected