Updated modal with API changes - thank you to student Sayak

This commit is contained in:
Edward Donner
2025-04-30 14:33:43 -04:00
parent c8f4c7c14e
commit 6b9a0a76a6
2 changed files with 12 additions and 15 deletions

View File

@@ -15,7 +15,7 @@ class SpecialistAgent(Agent):
Set up this Agent by creating an instance of the modal class
"""
self.log("Specialist Agent is initializing - connecting to modal")
Pricer = modal.Cls.lookup("pricer-service", "Pricer")
Pricer = modal.Cls.from_name("pricer-service", "Pricer")
self.pricer = Pricer()
self.log("Specialist Agent is ready")