Class QuarkusCallContextFactory

java.lang.Object
org.a2aproject.sdk.server.grpc.quarkus.QuarkusCallContextFactory
All Implemented Interfaces:
CallContextFactory

@ApplicationScoped public class QuarkusCallContextFactory extends Object implements CallContextFactory
  • Constructor Details

    • QuarkusCallContextFactory

      public QuarkusCallContextFactory()
  • Method Details

    • create

      public <V> ServerCallContext create(io.grpc.stub.StreamObserver<V> responseObserver)
      Description copied from interface: CallContextFactory
      Creates a ServerCallContext from gRPC request context.

      This method is called for each incoming gRPC request to create the context that will be passed to the RequestHandler and eventually to the AgentExecutor.

      Implementations should extract information from the current Context using GrpcContextKeys to access metadata, method name, peer info, and A2A protocol headers.

      Specified by:
      create in interface CallContextFactory
      Type Parameters:
      V - the response type for the gRPC method
      Parameters:
      responseObserver - the gRPC response stream observer
      Returns:
      a new ServerCallContext with extracted authentication, metadata, and headers