Skip to content

Commit 5d3a5fb

Browse files
committed
Ruff reformat
Signed-off-by: Ed Snible <snible@us.ibm.com>
1 parent 8ba8fd5 commit 5d3a5fb

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

a2a/a2a_contact_extractor/__main__.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
import httpx
1111
from a2a.server.apps import A2AStarletteApplication
1212
from a2a.server.request_handlers import DefaultRequestHandler
13-
from a2a.server.tasks import InMemoryTaskStore, InMemoryPushNotificationConfigStore, BasePushNotificationSender
13+
from a2a.server.tasks import (
14+
InMemoryTaskStore,
15+
InMemoryPushNotificationConfigStore,
16+
BasePushNotificationSender,
17+
)
1418
from a2a.types import AgentCapabilities, AgentCard, AgentSkill
1519
from dotenv import load_dotenv
1620
from pydantic import BaseModel, EmailStr, Field
@@ -56,14 +60,15 @@ def main(host, port, result_type, instructions):
5660
agent = ExtractorAgent(instructions=instructions, result_type=result_type)
5761
httpx_client = httpx.AsyncClient()
5862
push_notification_config_store = InMemoryPushNotificationConfigStore()
59-
push_notification_sender = BasePushNotificationSender(httpx_client,
60-
config_store=push_notification_config_store)
63+
push_notification_sender = BasePushNotificationSender(
64+
httpx_client, config_store=push_notification_config_store
65+
)
6166

6267
request_handler = DefaultRequestHandler(
6368
agent_executor=ExtractorAgentExecutor(agent=agent),
6469
task_store=InMemoryTaskStore(),
6570
push_config_store=push_notification_config_store,
66-
push_sender=push_notification_sender
71+
push_sender=push_notification_sender,
6772
)
6873
server = A2AStarletteApplication(
6974
agent_card=get_agent_card(host, port), http_handler=request_handler

0 commit comments

Comments
 (0)