गलत कोड की रिपोर्ट करें
कॉपी करें
AI से पूछें
import asyncio
from dedalus_labs import AsyncDedalus, DedalusRunner
from dotenv import load_dotenv
load_dotenv()
async def main():
client = AsyncDedalus()
runner = DedalusRunner(client)
result = await runner.run(
input="""I'm planning a trip to Paris, France from San Francisco, CA
for 3 days for Christmas in 2025. Can you help me find:
1. Flight options and prices, give me the best option for the cheapest flight
2. Hotel recommendations in central Paris
3. Weather forecast for my travel dates
4. Popular events during the Christmas season in Paris
5. Give a quick summary of the trip and the results
My budget is around $3000 total and I prefer mid-range accommodations. keep it succint in 300 words or less""",
model="anthropic/claude-opus-4-5",
mcp_servers=[
"windsor/brave-search-mcp", # यात्रा संबंधित जानकारी खोजने के लिए
"windsor/open-meteo-mcp", # गंतव्य पर मौसम के लिए
"windsor/ticketmaster-mcp" # इवेंट्स खोजने के लिए
]
)
print(f"Travel Planning Results:\n{result.final_output}")
if __name__ == "__main__":
asyncio.run(main())
यह ट्रैवल एजेंट उदाहरण कई MCP सर्वरों का उपयोग करता है:
- Brave Search MCP (
windsor/brave-search-mcp): नवीनतम यात्रा जानकारी, उड़ान विकल्प, होटल समीक्षाएँ और बुकिंग विकल्प खोजने के लिए - Open Meteo MCP (
windsor/open-meteo-mcp): आपके गंतव्य पर मौसम पूर्वानुमान के लिए - Ticketmaster MCP (
windsor/ticketmaster-mcp): आपकी यात्रा के दौरान कंसर्ट और अन्य इवेंट्स खोजने के लिए