Package com.google.genai.gaos.utils
package com.google.genai.gaos.utils
-
ClassDescriptionUtility class for defining async hook interfaces.Specifies what happens if a request action throws an Exception.Specifies how a response is transformed before response processing.Specifies how a request is transformed before sending.Async hook registry for runtime request/response processing.Exponential Backoff Strategy with Jitter The duration between consecutive attempts is calculated as follows: intervalMs = min(maxIntervalMs, initialIntervalMs*(baseFactor^attempts) +/- r) where baseFactor is the base factor and r a random value between 0 and jitterFactor*intervalMs.A utility class for creating data blobs from various input sources for use as request bodies.Blocking parser that reads from a Reader and delegates to a StreamingParser.EventStream<T>Provides a convenient way to consume Server-Sent Events (SSE) from a stream.Generic type resolver that supports both manual type registration and automatic fallback to unknown types for unrecognized discriminator values.Implemented by classes that have security annotations on fields.Encapsulates HTTP headers.Holder class for hook-associated types.Specifies what happens if a request action throws an Exception.Context for an AfterError hook call.Specifies how a response is transformed before response processing.Context for an AfterSuccess hook call.Specifies how a request is transformed before sending.Context for a BeforeRequest hook call.Context for a hook call.Transforms the HTTPClient before use.Utility class for adapting synchronous hooks to asynchronous hooks.Registers hooks for use at runtime by an end-user or for use by a customer that may edit the SDKHooks.java file.Java 8 replacements for JDK 9+ APIs used by the generated SDK.A composite Jackson
Modulethat registers all SDK-required Jackson customizations.SessionManager<T extends SessionManager.HasSessionKey>Wrapper for SLF4j logging that provides consistent logging patterns across the SDK.Generic streaming parser that handles byte buffer management and delegates format-specific logic to a StreamContentProcessor.Generic unknown wrapper for handling polymorphic types that don't have specific implementations.Utils.Function<S,T>