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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(io.grpc.stub.StreamObserver<V> responseObserver) Creates aServerCallContextfrom gRPC request context.
-
Constructor Details
-
QuarkusCallContextFactory
public QuarkusCallContextFactory()
-
-
Method Details
-
create
Description copied from interface:CallContextFactoryCreates aServerCallContextfrom gRPC request context.This method is called for each incoming gRPC request to create the context that will be passed to the
RequestHandlerand eventually to theAgentExecutor.Implementations should extract information from the current
ContextusingGrpcContextKeysto access metadata, method name, peer info, and A2A protocol headers.- Specified by:
createin interfaceCallContextFactory- 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
-