Authored TypeScript APIs for building Gestalt providers, helper CLIs, and runtime adapters.
import { defineApp, ok, operation, s } from "@valon-technologies/gestalt";export const app = defineApp({ displayName: "Example Provider", operations: [ operation({ id: "hello", input: s.object({ name: s.string({ default: "World" }) }), output: s.object({ message: s.string() }), async handler(input) { return ok({ message: `Hello, ${input.name}` }); }, }), ],}); Copy
import { defineApp, ok, operation, s } from "@valon-technologies/gestalt";export const app = defineApp({ displayName: "Example Provider", operations: [ operation({ id: "hello", input: s.object({ name: s.string({ default: "World" }) }), output: s.object({ message: s.string() }), async handler(input) { return ok({ message: `Hello, ${input.name}` }); }, }), ],});
import { parseRuntimeArgs, serve } from "@valon-technologies/gestalt/runtime"; Copy
import { parseRuntimeArgs, serve } from "@valon-technologies/gestalt/runtime";
Authored TypeScript APIs for building Gestalt providers, helper CLIs, and runtime adapters.
Example
Example