Declare
Use Stage 3 decorators to place names, descriptions, and schemas beside real methods.
TypeScript · LangChain · Stage 3 decorators
Published @theorvane/type-chain@0.1.1 makes LangChain JS tools and agents easier to author without hiding schemas, policy, or application ownership.
@Tool({ name: "find_product",
description: "Find a product.",
schema: z.object({ id: z.string() })
})
findProduct({ id }: { id: string }) {
return catalog.get(id);
}Ownership map
Integration is explicit without transferring runtime authority from your application.
Use Stage 3 decorators to place names, descriptions, and schemas beside real methods.
Read immutable, receiver-bound definitions without hiding the contract.
Create LangChain tools or use the in-process TypeMCP bridge through focused adapters.
Keep models, credentials, authorization, policy, state, hosting, and deployment in the application.
Runtime boundary
Get started