{
"actor-start": {
"eventTitle": "Price for Actor start",
"eventDescription": "Flat fee for starting an Actor run.",
"eventPriceUsd": 0.1
},
"task-completed": {
"eventTitle": "Price for completing the task",
"eventDescription": "Flat fee for completing the task.",
"eventPriceUsd": 0.4
}
}{
"actor-start": {
"eventTitle": "Price for Actor start",
"eventDescription": "Flat fee for starting an Actor run.",
"eventPriceUsd": 0.1
},
"task-completed": {
"eventTitle": "Price for completing the task",
"eventDescription": "Flat fee for completing the task.",
"eventPriceUsd": 0.4
}
}
async def main():
"""Runs the AI Travel Planner workflow."""
async with Actor:
await Actor.charge('actor-start')
actor_input = await Actor.get_input() or {}
Actor.log.info(f"Received input: {actor_input}")
travel_query = TravelState(**actor_input)
# Execute workflow
final_state = travel_workflow.invoke(travel_query)
Actor.log.info(f"Workflow completed. Final state: {final_state}")
await Actor.charge('task-completed')
# Save the final report
await save_report(final_state)
async def main():
"""Runs the AI Travel Planner workflow."""
async with Actor:
await Actor.charge('actor-start')
actor_input = await Actor.get_input() or {}
Actor.log.info(f"Received input: {actor_input}")
travel_query = TravelState(**actor_input)
# Execute workflow
final_state = travel_workflow.invoke(travel_query)
Actor.log.info(f"Workflow completed. Final state: {final_state}")
await Actor.charge('task-completed')
# Save the final report
await save_report(final_state)
**Get to know the people behind the Actors** Apify's Marketing team have been busy! In the past couple of weeks, they have launched 3 separate content series featuring community developers. Take a closer look on your platform of choice: - LinkedIn Creator Spotlight posts - check out <@683054028275712064>'s spotlight: https://www.linkedin.com/feed/update/urn:li:activity:7499112324486848512/?actorCompanyId=10608457 - Twitter/X.com Creator Spotlight posts: https://x.com/apify/status/2093346503326626183 - YouTube shorts - featuring <@251434914849882113> and <@775450746622967818> : https://www.youtube.com/watch?v=OK_duUfuquo - Builder Spotlight blog posts - this one is <@1061710954049572914>: https://blog.apify.com/apify-builder-spotlight-goldmine/ Hope you enjoy getting to know the developer behind your favorite Actor ๐ <a:clapping_all:1430839221077413964> โผ๏ธ
ellativity ยท 3d ago
Hey @everyone, I'm in https://discord.com/channels/801163717915574323/1430491198145167371 with <@636370983460274219> if you wanna hop in and chat!
ellativity ยท 5d ago
Hey @everyone I'm about to jump into https://discord.com/channels/801163717915574323/1430491198145167371 with <@636370983460274219> and <@757559449660424272> if anyone wants to join us for a chat!
ellativity ยท 4w ago
Join the Discord to ask follow-up questions and connect with the community