Package io.a2a.spec

Class ExtendedAgentCardNotConfiguredError

All Implemented Interfaces:
Event, Serializable

public class ExtendedAgentCardNotConfiguredError extends A2AProtocolError
A2A Protocol error indicating that the agent does not have an authenticated extended card configured.

This error is returned when a client attempts to retrieve an authenticated extended agent card, but the agent has not configured authentication-protected extended card information.

Extended cards may contain additional agent metadata, capabilities, or configuration that should only be accessible to authenticated clients. Agents that don't implement this feature will return this error.

Corresponds to A2A-specific error code -32007.

Usage example:


 // In agent implementation
 if (extendedAgentCard == null) {
     throw new ExtendedAgentCardNotConfiguredError();
 }
 
See Also:
  • Constructor Details

    • ExtendedAgentCardNotConfiguredError

      public ExtendedAgentCardNotConfiguredError(@Nullable Integer code, @Nullable String message, @Nullable Object data)
      Constructs an error for agents that don't support authenticated extended card retrieval.
      Parameters:
      code - the error code
      message - the error message
      data - additional error data