Skip to main content

OpenAI Agents SDK (Python) ஐ aicharged.io உடன் இணைக்கவும்

215 கருவிகள், ஒரு எண்ட்பாயிண்ட்: https://aicharged.io/api/v1/mcp

OpenAI Agents SDK (Python)

Python க்கான OpenAI Agents SDK: Authorization ஹெடருடன் MCPServerStreamableHttp, mcp_servers இல் ஏஜென்டுக்கு அனுப்பப்படுகிறது.

  • API விசை (Bearer)

ஏஜென்ட் குறியீடு

பரிந்துரைக்கப்படுகிறது
import asyncio, os
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main():
    async with MCPServerStreamableHttp(
        name="aicharged",
        params={
            "url": "https://aicharged.io/api/v1/mcp",
            "headers": {"Authorization": f"Bearer {os.environ['AICHARGED_API_KEY']}"},
            "timeout": 30,
        },
    ) as server:
        agent = Agent(name="Assistant", instructions="Use the aicharged.io tools.", mcp_servers=[server])
        result = await Runner.run(agent, "List my recent aicharged.io runs")
        print(result.final_output)

asyncio.run(main())

தொகுப்பை நிறுவவும்

pip install openai-agents

அல்லது CLI மூலம் இதை அமைக்கவும்

aicharged setup இந்த கணினியில் உள்ள AI கிளையண்டுகளைக் கண்டறிந்து, பிரவுசர் மூலம் உங்களை உள்நுழையச் செய்து, அவற்றின் உள்ளமைவை எழுதுகிறது.

ஒரே வரியில் இணைக்கவும்

CLI-ஐ நிறுவவும் · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
CLI-ஐ நிறுவவும் · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP எண்ட்பாயிண்ட்
https://aicharged.io/api/v1/mcp

ஸ்ட்ரீம் செய்யக்கூடிய HTTP. Authorization: Bearer <API_KEY> ஹெடரை அனுப்பவும், அல்லது உங்கள் கிளையண்ட் ஆதரிக்கும் இடங்களில் OAuth மூலம் உள்நுழையவும்.

அல்லது உங்கள் ஏஜென்ட்டிடம் சொல்லுங்கள்
https://aicharged.io/agent.md ஐப் படித்து, aicharged.io உடன் என்னை அமைக்கவும்

இந்த பிராம்ப்ட்டுடன் இதில் திறக்கவும் Claude (புதிய தாவலில் திறக்கும்) ChatGPT (புதிய தாவலில் திறக்கும்) Perplexity (புதிய தாவலில் திறக்கும்)