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

Function schemaToStandard

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

Source from the content-addressed store, hash-verified

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

Callers 1

core-tools.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected