How to run (each server in a separate terminal):
You can create a GOOGLE_API_KEY in the page https://aistudio.google.com/
python -m venv venv
source venv/bin/activate
pip install -r requirements.txtsource .venv-a2a/bin/activate
python food_server.pysource venv/bin/activate
python places_server.pysource venv/bin/activate
python transport_server.pysource venv/bin/activate
python orchestrator_client.py -m "I want to visit Astana from Bogota Colombia"Optional JSON output:
source venv/bin/activate
python orchestrator_client.py -m "I want to visit Tokyo" --jsonExample response:
- Basic response:
python orchestrator_client.py -m "I want to visit Astana from Bogota Colombia"
client = A2AClient(httpx_client=httpx_client, agent_card=card)
Travel report for Astana from Bogota Colombia
FOOD:
- Beshbarmak: The national dish, boiled meat (usually horse or mutton) served over boiled noodles. Commonly found in traditional restaurants and family gatherings.
- Kazy: A traditional sausage made from horse meat ribs, a delicacy often served during special occasions. Look for it in local markets and some restaurants specializing in Kazakh cuisine.
- Baursaki: Fried dough balls, a staple served with almost every meal, sweet or savory. Available in almost every restaurant and bakery.
- Dietary Notes: Halal meat is widely available. Vegetarian options are limited but growing; look for dishes with vegetables and rice or noodles. Allergy awareness is not widespread, so it's crucial to communicate allergies clearly, possibly with a translation app.
PLACES:
- National Museum of Kazakhstan: Comprehensive overview of Kazakh history and culture, spanning from ancient times to the present day. Allocate at least 3-4 hours.
- Bayterek Tower: Iconic symbol of Astana offering panoramic city views from the observation deck. Go during sunset for the best experience.
- Hazrat Sultan Mosque: One of the largest mosques in Central Asia, showcasing stunning Islamic architecture. Dress modestly and be respectful of prayer times.
- Nur-Astana Mosque: Another significant mosque, known for its golden dome and intricate interior design. Offers a quieter, less crowded experience than Hazrat Sultan.
- Khan Shatyr Entertainment Center: A large transparent tent housing shops, restaurants, and an indoor beach. Visit during the evening for a lively atmosphere and entertainment.
TRANSPORT:
- Getting to Astana from Bogota requires multiple flights, typically involving connections in Europe (e.g., Amsterdam, Frankfurt) or Turkey (Istanbul). Expect a travel time of 20-30+ hours.
- The best time to visit Astana is during the shoulder seasons (late spring: May-June, or early autumn: September). The weather is milder, with pleasant temperatures for exploring. Summers (July-August) can be very hot, and winters (November-March) are extremely cold with heavy snowfall.
- Astana's public transport includes buses and a light rail system (LRT). Taxis are readily available and relatively affordable. Ride-hailing apps like Yandex Taxi are also popular. Walking is feasible in the city center, especially during favorable weather.
- Astana International Airport (NQZ) is well-connected to the city center. Bus routes 10 and 12 offer direct service. Taxis are available outside the terminal; negotiate the fare beforehand or use a ride-hailing app for a fixed price. The LRT is under construction and not yet operational.
- Pack for extreme temperature variations depending on the season. For spring/autumn, layers are essential, including a light jacket. For summer, bring light, breathable clothing and sunscreen. For winter, you'll need heavy winter gear: a thick coat, hat, gloves, scarf, and insulated boots.
- With Json
python orchestrator_client.py -m "I want to visit Tokyo" --json
from pydantic.v1.fields import FieldInfo as FieldInfoV1
/Users/daniel.ortiz/development/a2a/orchestrator_client.py:73: DeprecationWarning: A2AClient is deprecated and will be removed in a future version. Use ClientFactory to create a client with a JSON-RPC transport.
client = A2AClient(httpx_client=httpx_client, agent_card=card)
{
"destination": "Tokyo",
"food": {
"agent": "food",
"destination": "Tokyo",
"bullets": [
"Ramen: A must-try noodle soup. Tonkotsu (pork bone broth) is popular, but try Shoyu (soy sauce) or Miso variations. Found in ramen shops ('ramen-ya') everywhere.",
"Sushi & Sashimi: Experience fresh, expertly prepared raw fish. Visit Tsukiji Outer Market or local sushi restaurants for a variety of options.",
"Tempura: Lightly battered and deep-fried seafood and vegetables. Commonly found in tempura restaurants, often served with dipping sauce.",
"Dietary Notes: Vegetarian ramen options exist (look for vegetable broth), but many broths contain meat. Halal options are limited but increasing; search for Halal-certified restaurants. Allergies: Soy sauce is prevalent; inform restaurants of any allergies beforehand."
]
},
"places": {
"agent": "places",
"destination": "Tokyo",
"bullets": [
"Tokyo National Museum: Explore vast collections of Japanese art and historical artifacts, providing a comprehensive overview of Japanese culture.",
"Senso-ji Temple & Nakamise-dori: Visit Tokyo's oldest temple and stroll through the vibrant Nakamise-dori market for traditional crafts and snacks.",
"Shibuya Crossing & Hachiko Statue: Experience the iconic scramble crossing and pay respects to Hachiko, a symbol of loyalty, for a quintessential Tokyo moment.",
"Yanaka Ginza: A hidden gem offering a nostalgic glimpse into old Tokyo with traditional shops and street food, perfect for a relaxed afternoon away from the crowds.",
"Ghibli Museum (Mitaka): (Tickets require advance purchase) Immerse yourself in the world of Studio Ghibli animation; a must-visit for animation fans."
]
},
"transport": {
"agent": "transport",
"destination": "Tokyo",
"bullets": [
"Getting Around: Tokyo boasts an excellent public transport system. Utilize the JR lines (especially the Yamanote Line), subway (Tokyo Metro and Toei lines), and local buses. Consider purchasing a Suica or Pasmo card for easy tap-and-go payment. Taxis are readily available but expensive. Walking is great for exploring neighborhoods, and ride-hailing apps like Uber are available but less common than taxis.",
"Best Time to Visit: Spring (March-May) and Autumn (September-November) are ideal. Spring offers cherry blossoms, while autumn provides pleasant temperatures and colorful foliage. Avoid Golden Week (late April/early May) and Obon (mid-August) due to crowds and higher prices.",
"Weather & Packing: Spring (10-20°C/50-68°F) - pack layers, light jacket. Summer (25-35°C/77-95°F) - light, breathable clothing, sunscreen, hat. Autumn (15-25°C/59-77°F) - layers, light jacket. Winter (5-15°C/41-59°F) - warm clothing, coat, gloves, scarf. Expect humidity in summer and occasional rain year-round; pack accordingly.",
"Airport to City: Narita (NRT) - Narita Express train to Tokyo Station or Shinjuku Station is efficient. Limousine Bus is another option. Haneda (HND) - Keikyu Line or Tokyo Monorail to central Tokyo are fast and convenient. Taxis are available from both airports but are very expensive."
]
}
}