From 557cbb446ebdab18947a025948f67a31821c8aa2 Mon Sep 17 00:00:00 2001 From: a2a-cloud Date: Sat, 18 Jul 2026 06:11:57 +0000 Subject: [PATCH] a2a-source-edit: write agent.py --- agent.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/agent.py b/agent.py index 58eed19..92175c7 100644 --- a/agent.py +++ b/agent.py @@ -63,6 +63,10 @@ class QuoteJudgeStudioV1Config(BaseModel): """Runtime config is intentionally empty; the app uses platform auth + DB.""" +class QuoteJudgeState(BaseModel): + """Card-visible durable state marker; data lives in managed Postgres.""" + + class QuoteInput(BaseModel): vendor: str = Field(..., min_length=1, max_length=120) quantity: int = Field(..., ge=1, le=1_000_000) @@ -129,6 +133,7 @@ class QuoteJudgeStudioV1(A2AAgent[QuoteJudgeStudioV1Config, PlatformUserAuth]): auth_model = PlatformUserAuth state = State.DURABLE + state_model = QuoteJudgeState pricing = Pricing( price_per_call_usd=0.0, caller_pays_llm=False,