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
21 lines
813 B
Python
21 lines
813 B
Python
"""OpenAI Agents SDK Adapter — Use WalletPress tools with OpenAI Agents SDK."""
|
|
from __future__ import annotations
|
|
|
|
def get_tools() -> list[dict]:
|
|
"""Get all MCP tools as OpenAI function-calling format."""
|
|
from agent.mcp_server import mcp
|
|
functions = []
|
|
for t in mcp._tool_manager.list_tools():
|
|
functions.append({
|
|
"type": "function",
|
|
"function": {
|
|
"name": t.name,
|
|
"description": t.description or t.name,
|
|
"parameters": {
|
|
"type": "object",
|
|
"properties": {k: {"type": "string"} for k in (t.parameters or {}).keys()},
|
|
"required": list((t.parameters or {}).keys())[:3] if t.parameters else [],
|
|
},
|
|
},
|
|
})
|
|
return functions
|