Tuesday, December 1, 2026

aud and sub in JWT token

 In a JSON Web Token (JWT), sub (subject) identifies who or what the token is about (usually a user), while aud (audience) specifies the intended recipient service or API that should accept the token. [1, 2]

sub (Subject)
  • Meaning: Identifies the principal or entity the token represents, such as a user ID, device, or service account.
  • Uniqueness: It is typically unique within the context of its issuer (iss), so combining (iss, sub) avoids collisions across identity providers.
  • Related terms / synonyms: Subject identifier, user ID, principal, entity ID. [1, 2, 3, 4]
aud (Audience)
  • Meaning: Identifies the intended consumer(s) of the JWT, such as a specific API or resource server. It can be a single string or an array of strings. [1, 2]
  • Security role: Receiving services check aud against their own identifier and reject tokens that do not match, preventing a token meant for one API from being replayed against another. [1, 2]
  • Related terms / synonyms: Intended recipient, target audience, resource identifier, consumer.
Example Payload
json
{
  "iss": "https://auth.example.com",
  "sub": "user_98765",
  "aud": ["https://api.example.com", "https://billing.example.com"],
  "exp": 1796134800
}
Use code with caution.

Wednesday, November 25, 2026

How Agent Skill works in A2A?

You said: What is Agent Skills in Google A2A framework

How Agent Skills Work in A2A
  • Capability Discovery: An A2A server publishes an Agent Card listing its available skills so client agents know what tasks they can hand off.
  • Skill Metadata: In A2A, an AgentSkill defines attributes such as an id, name, description, input_modes and output_modes (e.g., text/plain), tags, and usage examples.
  • Task Delegation: When another agent needs a capability matching a listed skill, it uses A2A over HTTP/SSE/JSON-RPC to send a task and track its execution.
Usage Examples
  • Simple Text / Echo Skill: An example echo_bot skill with text/plain input and output modes that acknowledges a request and returns a "Hello World" response.
  • Cross-Agent Task Handoff: A sales agent discovering a finance agent's invoice or billing skill via its Agent Card and delegating a payment or quote task to it.
  • Cloud & Workflow Skills: Modular skill packages in Google Cloud environments that guide agents on workflows for services like BigQuery, Cloud Run, or GKE.
Related Terms and Synonyms
Depending on whether you are looking at the A2A protocol specification or general agent architecture, related terms include:
  • Capabilities / Abilities / Functions: Used in A2A documentation to describe what a remote agent can do.
  • Agent Card: The JSON metadata document where A2A skills and authentication requirements are advertised.
  • MCP (Model Context Protocol) / Tools: Connects agents to external tools, APIs, and data sources—complementing A2A (inter-agent coordination) and skills (task instructions/capabilities).
Are you building an A2A Agent Card and defining AgentSkill schemas, or looking to package SKILL.md instructions in ADK? Sharing your language/SDK (such as Python or JavaScript) can help me provide a concrete example.
+7

  • Google Cloud
    What are Agent Skills? | Google Cloud
    August 19, 2026 — Agent skills: Reusable packages of instructions and context in natural language extending AI agent capabilities using progressive ...
  • Google for Developers Blog
    Announcing the Agent2Agent Protocol (A2A) - Google Developers Blog
    April 9, 2025 — Google Cloud launched the open Agent2Agent (A2A) protocol on April 9, 2025, with over 50 technology and service partners to enable...
  • A2A Protocol
    3. Agent Skills & Agent Card
    # Agent Skill In __main__.py , you can see how a skill for the Helloworld agent is defined: # Defines the abilities or functions t...