@tbc-fold/agents
v0.1.1
Published
Fold — Agent framework adapters for LangChain, LangGraph, and Vercel AI SDK
Maintainers
Readme
@tbc-fold/agents
Agent framework adapters for Fold. Drop your Fold workspace into LangChain, LangGraph, or Vercel AI SDK with one function call.
Installation
npm install @tbc-fold/agents @tbc-fold/node
# Plus the agent framework you use:
npm install @langchain/core # for LangChain/LangGraph
npm install ai zod # for Vercel AI SDKLangChain
import { Workspace, RAMResource } from '@tbc-fold/node'
import { foldTools } from '@tbc-fold/agents'
const ws = new Workspace({ '/data': new RAMResource() })
const tools = foldTools(ws)
// → [DynamicTool { name: 'bash', ... }]LangGraph
import { foldLangGraphTools } from '@tbc-fold/agents'
const tools = foldLangGraphTools(workspace)
// Use with createReactAgent or your graphVercel AI SDK
import { foldTool } from '@tbc-fold/agents'
import { generateText } from 'ai'
const tools = foldTool(workspace)
const result = await generateText({
model: openai('gpt-4o'),
tools,
prompt: 'List all files in /data',
})License
Apache-2.0
