Build an AI Agent with Temporal

Поділитися
Вставка
  • Опубліковано 31 січ 2025

КОМЕНТАРІ • 16

  • @oluseyiolarewaju3658
    @oluseyiolarewaju3658 6 днів тому +4

    Amazing. Short, simple and open… 👏

  • @CecilPhillip
    @CecilPhillip 11 днів тому +4

    This is fantastic. I love demos like this that bring multiple tools together to solve a problem

  • @epuerta9
    @epuerta9 20 днів тому +5

    This is great, I was actually looking at temporal over the last weeks for this exact use case. Great demo

  • @harsimran1
    @harsimran1 23 дні тому +5

    This is so cool indeed!
    Another scenario would be to have a customer send a photo in the chat of their windscreen and an AI determines if the windscreen has a sensor or not. This is useful for people who run windscreen replacement businesses as most customers don't know what type of screen they have and have no idea where to look.
    I'm sure there an API with car VIN numbers which can specify if a car has a windscreen with a sensor or not, but it may be accurate or not. Having AI determine the type of glass and follow up with the car model and year can be used to quickly generate quotes and order out of stock screens when a customer is interested in a windscreen replacement.

  • @HarshSrivastav-w7h
    @HarshSrivastav-w7h 20 днів тому +4

    Awesome

  • @andrew.derevo
    @andrew.derevo 17 днів тому +4

    love temporal. Don’t check code example yet but it looks like it use same workflow from chat start to end?

    • @SteveA-temporal
      @SteveA-temporal 17 днів тому +2

      Yep! Easy to delegate tool-running into child workflows if that's desirable, though

    • @andrew.derevo
      @andrew.derevo 17 днів тому

      @ That’s interesting, so basically we have session with user based on workflow lifetime, and temporal is really good for a long living tasks. this is great idea. just interesting, how you will solve if workflow done or terminated but we need to restore same session with user?

    • @SteveA-temporal
      @SteveA-temporal 17 днів тому +1

      @@andrew.derevo The workflow's state (conversation history) is accessible as a Query. And you can query the state of finished workflows. If you want to 'restore' a workflow, you could query your finished workflow and use it as input to a new agent workflow. Your workflow would need to support taking an existing history as input data, but that's also easy to do.

    • @andrew.derevo
      @andrew.derevo 16 днів тому +1

      @ As i remember by default in temporal workflow history lifetime is about few weeks or so, but we can change it of course and make it lived longer but for some reason it feels like not a best solution, am i wrong? (in my mind better solution come like external persist storage service that store historical data for finished workflows and then we recreate new workflow from there. one more Postgres, Redis, Mondo, etc) i still learning temporal and often overthinking i guess, will be really happy to hear some advice from experienced developers 🙏

    • @SteveA-temporal
      @SteveA-temporal 16 днів тому +2

      @@andrew.derevo you're right. Finished workflows have a maximum retention period (90 days in Temporal Cloud). There's a workflow export feature so you can store it in your own S3 bucket, for example.
      Ultimately, if you want ended chat histories to be used again, I agree with you that you want to be persisting that information to a nosql / relational database.

  • @DeanBekkering
    @DeanBekkering 21 день тому +3

    Very cool! Combine temporal with notdiamond ai = homerun.

  • @andrew.derevo
    @andrew.derevo 3 дні тому

    I have one more question about Pydantic😅 de facto it’s kind of standard in python world, but it seems there is still no a perfect solution for temporal? we use pydantic converter from official examples but it feels a bit confusing to me, what do you think about this case? (especially in AI niche pydantic do a pretty good job to get structured outputs from LLM’s and integrated in almost all top python AI libraries)

    • @SteveA-temporal
      @SteveA-temporal 11 годин тому +1

      Stay tuned, we're working on Pydantic support in our Python SDK and plan to release this soon!

    • @andrew.derevo
      @andrew.derevo 8 годин тому

      @ amazing news😍