We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93675e1 commit ea78b6bCopy full SHA for ea78b6b
1 file changed
src/a2a/server/request_handlers/grpc_handler.py
@@ -1,12 +1,15 @@
1
# ruff: noqa: N802
2
import contextlib
3
import logging
4
+
5
from abc import ABC, abstractmethod
6
from collections.abc import AsyncIterable, Sequence
7
8
9
try:
10
import grpc
11
import grpc.aio
12
13
from grpc.aio import Metadata
14
except ImportError as e:
15
raise ImportError(
@@ -16,6 +19,7 @@
16
19
) from e
17
20
18
21
import a2a.grpc.a2a_pb2_grpc as a2a_grpc
22
23
from a2a import types
24
from a2a.auth.user import UnauthenticatedUser
25
from a2a.extensions.common import (
@@ -30,6 +34,7 @@
30
34
from a2a.utils.errors import ServerError
31
35
from a2a.utils.helpers import validate, validate_async_generator
32
36
37
33
38
logger = logging.getLogger(__name__)
39
40
# For now we use a trivial wrapper on the grpc context object
0 commit comments