- Notifications
You must be signed in to change notification settings - Fork1k
Description
Question
I'm using fasta2a with pydantic and I would like to add authentication to the server and make contexts have a user field. In order to do that, my understanding is I need to change out the storage or at the very least change out the Worker.. My problem is that the pydantic A2A worker doesa lot it seems... it does a lot with response formatting and type mapping etc. A lot of things I don't want to re-implement.. But, the AgentWorker class firstly is in a private module which out of respect for conventions I don't want to subclass.. but then even if I did, it specifically declares the context type as a list of messages. How can I keep the majority of the functionality of the pydantic worker while still changing out the context type to add user information into the context?
Additional Context
No response