Class: A2A::AgentAuthentication

Inherits:
ProtocolStruct
  • Object
show all
Defined in:
lib/a2a/types/agent_authentication.rb

Overview

Defines the authentication schemes and credentials for an agent.

Direct Known Subclasses

AuthenticationInfo

Instance Method Summary collapse

Methods included from Extensions::CaseTransformation

#camelize, included, #to_json

Instance Method Details

#credentialsString?

required initially.

Returns:

  • (String, nil)

    Credentials for authentication. Can be a string (e.g., token) or null if not



11
# File 'lib/a2a/types/agent_authentication.rb', line 11

attribute? :credentials, Types::String.optional

#schemesArray<String>

Returns List of supported authentication schemes.

Returns:

  • (Array<String>)

    List of supported authentication schemes.



7
# File 'lib/a2a/types/agent_authentication.rb', line 7

attribute :schemes, Types::Array.of(Types::String)