Skip to content

feat: add Vercel AI SDK integration example#112

Merged
JackChen-me merged 4 commits intomainfrom
feat/custom-tools
Apr 15, 2026
Merged

feat: add Vercel AI SDK integration example#112
JackChen-me merged 4 commits intomainfrom
feat/custom-tools

Conversation

@JackChen-me
Copy link
Copy Markdown
Owner

Summary

  • Adds examples/with-vercel-ai-sdk/ -- a Next.js App Router demo showing OMA + Vercel AI SDK working together
  • Backend: OMA runTeam() orchestrates researcher + writer agents, AI SDK streamText() streams the result
  • Frontend: AI SDK useChat hook for streaming chat UI
  • Uses @ai-sdk/openai-compatible for provider flexibility (demo points at DeepSeek)

Test plan

  • cd examples/with-vercel-ai-sdk && npm install && npm run dev starts without errors
  • Submit a topic in the chat UI, verify streaming response from multi-agent team
  • npx tsc --noEmit passes in the example directory
  • Root npm test still passes (558 tests)

…ool injection

Users can now pass custom ToolDefinition objects via AgentConfig.customTools,
which are registered alongside built-in tools in all orchestrator paths
(runAgent, runTeam, runTasks). Custom tools bypass allowlist/preset filtering
but can still be blocked by disallowedTools.

Ref #108
Previously runtime-added tools bypassed all filtering including
disallowedTools, contradicting the documented behavior. Now custom
tools still bypass preset/allowlist but respect the denylist.
Next.js App Router demo showing OMA + Vercel AI SDK working together:
- Backend: OMA runTeam() orchestrates researcher + writer agents
- Frontend: AI SDK useChat hook for streaming chat UI
- Uses DeepSeek via OpenAI-compatible provider
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@JackChen-me JackChen-me merged commit 1cc43eb into main Apr 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant