walletpress/backend/adapters/vercel_ai.py
cryptorugmunch e13bd4d774
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / security (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / license (push) Waiting to run
CI / ai-review (push) Waiting to run
docs: apply fleet-template (16-artifact scaffold)
Adds missing standard artifacts:
- README.md (if missing)
- AGENTS.md (AI agent contract)
- PLAN.md (current sprint)
- STATUS.md (where we are)
- DEVELOPMENT.md (dev workflow)
- DEPLOYMENT.md (deploy procedure)
- TESTING.md (test strategy)
- DECISIONS.md (ADR index + templates)
- .github/CODEOWNERS
- .github/workflows/ci.yml

Preserves all existing artifacts.

Refs: RugMunchMedia/fleet-template
2026-07-02 02:07:06 +07:00

16 lines
570 B
Python

"""Vercel AI SDK Adapter — Use WalletPress tools with Vercel AI SDK."""
from __future__ import annotations
def get_tools() -> list[dict]:
"""Get all MCP tools as Vercel AI SDK tool format."""
from agent.mcp_server import mcp
tools = {}
for t in mcp._tool_manager.list_tools():
tools[t.name] = {
"description": t.description or t.name,
"parameters": {
"type": "object",
"properties": {k: {"type": "string"} for k in (t.parameters or {}).keys()},
},
}
return tools