Class GenericTypeIdResolver<T>

java.lang.Object
com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
com.google.genai.gaos.utils.GenericTypeIdResolver<T>
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Direct Known Subclasses:
AgentToolTypeIdResolver, AnnotationTypeIdResolver, ContentTypeIdResolver, CreateAgentInteractionAgentConfigTypeIdResolver, FunctionResultSubcontentTypeIdResolver, InteractionAgentConfigTypeIdResolver, InteractionSSEEventTypeIdResolver, StepDeltaDataTypeIdResolver, StepTypeIdResolver, ThoughtSummaryContentTypeIdResolver, ToolTypeIdResolver, TranscriptionModeTypeIdResolver

public abstract class GenericTypeIdResolver<T> extends com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
Generic type resolver that supports both manual type registration and automatic fallback to unknown types for unrecognized discriminator values.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.annotation.JsonTypeInfo.Id
     
    idFromValueAndType(Object value, Class<?> suggestedType)
     
    com.fasterxml.jackson.databind.JavaType
    typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id)
     

    Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase

    getDescForKnownTypeIds, idFromBaseType, init

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver

    idFromValue
  • Method Details

    • idFromValueAndType

      public String idFromValueAndType(Object value, Class<?> suggestedType)
    • getMechanism

      public com.fasterxml.jackson.annotation.JsonTypeInfo.Id getMechanism()
    • typeFromId

      public com.fasterxml.jackson.databind.JavaType typeFromId(com.fasterxml.jackson.databind.DatabindContext context, String id) throws IOException
      Specified by:
      typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
      Overrides:
      typeFromId in class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
      Throws:
      IOException