Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingInterceptor ¶ added in v0.2.0
func LoggingInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
LoggingInterceptor logs unary RPC details, including latency, errors, and conversation ID if present.
func StreamLoggingInterceptor ¶ added in v0.2.0
func StreamLoggingInterceptor(srv any, ss grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamLoggingInterceptor logs stream RPC connection details and latency.
Types ¶
type Server ¶
type Server struct {
proto.UnimplementedInteractionsServiceServer
// contains filtered or unexported fields
}
Server implements the AXService gRPC service.
func (*Server) CreateInteraction ¶ added in v0.2.3
func (s *Server) CreateInteraction(req *proto.CreateInteractionEvent, stream grpc.ServerStreamingServer[proto.CreateInteractionResponse]) error
CreateInteraction executes a new agentic task with streaming responses.
func (*Server) GracefulStop ¶
func (s *Server) GracefulStop()
GracefulStop stops the gRPC server gracefully.
Click to show internal directories.
Click to hide internal directories.