{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "A2A Protocol Schemas",
  "description": "Non-normative JSON Schema bundle extracted from proto definitions.",
  "version": "v1",
  "definitions": {
    "Struct": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Struct",
      "type": "object"
    },
    "Timestamp": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "format": "date-time",
      "title": "Timestamp",
      "type": "string"
    },
    "Value": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Value"
    },
    "API Key Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme using an API key.",
      "properties": {
        "description": {
          "default": "",
          "description": "An optional description for the security scheme.",
          "type": "string"
        },
        "location": {
          "default": "",
          "description": "The location of the API key. Valid values are \"query\", \"header\", or \"cookie\".",
          "type": "string"
        },
        "name": {
          "default": "",
          "description": "The name of the header, query, or cookie parameter to be used.",
          "type": "string"
        }
      },
      "title": "API Key Security Scheme",
      "type": "object"
    },
    "Agent Capabilities": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines optional capabilities supported by an agent.",
      "patternProperties": {
        "^(extended_agent_card)$": {
          "description": "Indicates if the agent supports providing an extended agent card when authenticated.",
          "type": "boolean"
        },
        "^(push_notifications)$": {
          "description": "Indicates if the agent supports sending push notifications for asynchronous task updates.",
          "type": "boolean"
        }
      },
      "properties": {
        "extendedAgentCard": {
          "description": "Indicates if the agent supports providing an extended agent card when authenticated.",
          "type": "boolean"
        },
        "extensions": {
          "description": "A list of protocol extensions supported by the agent.",
          "items": {
            "$ref": "lf.a2a.v1.AgentExtension.jsonschema.json"
          },
          "type": "array"
        },
        "pushNotifications": {
          "description": "Indicates if the agent supports sending push notifications for asynchronous task updates.",
          "type": "boolean"
        },
        "streaming": {
          "description": "Indicates if the agent supports streaming responses.",
          "type": "boolean"
        }
      },
      "title": "Agent Capabilities",
      "type": "object"
    },
    "Agent Card": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A self-describing manifest for an agent. It provides essential\n metadata including the agent's identity, capabilities, skills, supported\n communication methods, and security requirements.\n Next ID: 20",
      "patternProperties": {
        "^(default_input_modes)$": {
          "description": "The set of interaction modes that the agent supports across all skills.\n This can be overridden per skill. Defined as media types.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(default_output_modes)$": {
          "description": "The media types supported as outputs from this agent.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(documentation_url)$": {
          "description": "A URL providing additional documentation about the agent.",
          "type": "string"
        },
        "^(icon_url)$": {
          "description": "Optional. A URL to an icon for the agent.",
          "type": "string"
        },
        "^(security_requirements)$": {
          "description": "Security requirements for contacting the agent.",
          "items": {
            "$ref": "lf.a2a.v1.SecurityRequirement.jsonschema.json"
          },
          "type": "array"
        },
        "^(security_schemes)$": {
          "additionalProperties": {
            "$ref": "lf.a2a.v1.SecurityScheme.jsonschema.json"
          },
          "description": "The security scheme details used for authenticating with this agent.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "^(supported_interfaces)$": {
          "description": "Ordered list of supported interfaces. The first entry is preferred.",
          "items": {
            "$ref": "lf.a2a.v1.AgentInterface.jsonschema.json"
          },
          "type": "array"
        }
      },
      "properties": {
        "capabilities": {
          "$ref": "lf.a2a.v1.AgentCapabilities.jsonschema.json",
          "description": "A2A Capability set supported by the agent."
        },
        "defaultInputModes": {
          "description": "The set of interaction modes that the agent supports across all skills.\n This can be overridden per skill. Defined as media types.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "defaultOutputModes": {
          "description": "The media types supported as outputs from this agent.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "description": {
          "default": "",
          "description": "A human-readable description of the agent, assisting users and other agents\n in understanding its purpose.\n Example: \"Agent that helps users with recipes and cooking.\"",
          "type": "string"
        },
        "documentationUrl": {
          "description": "A URL providing additional documentation about the agent.",
          "type": "string"
        },
        "iconUrl": {
          "description": "Optional. A URL to an icon for the agent.",
          "type": "string"
        },
        "name": {
          "default": "",
          "description": "A human readable name for the agent.\n Example: \"Recipe Agent\"",
          "type": "string"
        },
        "provider": {
          "$ref": "lf.a2a.v1.AgentProvider.jsonschema.json",
          "description": "The service provider of the agent."
        },
        "securityRequirements": {
          "description": "Security requirements for contacting the agent.",
          "items": {
            "$ref": "lf.a2a.v1.SecurityRequirement.jsonschema.json"
          },
          "type": "array"
        },
        "securitySchemes": {
          "additionalProperties": {
            "$ref": "lf.a2a.v1.SecurityScheme.jsonschema.json"
          },
          "description": "The security scheme details used for authenticating with this agent.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "signatures": {
          "description": "JSON Web Signatures computed for this `AgentCard`.",
          "items": {
            "$ref": "lf.a2a.v1.AgentCardSignature.jsonschema.json"
          },
          "type": "array"
        },
        "skills": {
          "description": "Skills represent the abilities of an agent.\n It is largely a descriptive concept but represents a more focused set of behaviors that the\n agent is likely to succeed at.",
          "items": {
            "$ref": "lf.a2a.v1.AgentSkill.jsonschema.json"
          },
          "type": "array"
        },
        "supportedInterfaces": {
          "description": "Ordered list of supported interfaces. The first entry is preferred.",
          "items": {
            "$ref": "lf.a2a.v1.AgentInterface.jsonschema.json"
          },
          "type": "array"
        },
        "version": {
          "default": "",
          "description": "The version of the agent.\n Example: \"1.0.0\"",
          "type": "string"
        }
      },
      "title": "Agent Card",
      "type": "object"
    },
    "Agent Card Signature": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "AgentCardSignature represents a JWS signature of an AgentCard.\n This follows the JSON format of an RFC 7515 JSON Web Signature (JWS).",
      "properties": {
        "header": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "The unprotected JWS header values."
        },
        "protected": {
          "default": "",
          "description": "(-- api-linter: core::0140::reserved-words=disabled\n     aip.dev/not-precedent: Backwards compatibility --)\n Required. The protected JWS header for the signature. This is always a\n base64url-encoded JSON object.",
          "type": "string"
        },
        "signature": {
          "default": "",
          "description": "Required. The computed signature, base64url-encoded.",
          "type": "string"
        }
      },
      "title": "Agent Card Signature",
      "type": "object"
    },
    "Agent Extension": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A declaration of a protocol extension supported by an Agent.",
      "properties": {
        "description": {
          "default": "",
          "description": "A human-readable description of how this agent uses the extension.",
          "type": "string"
        },
        "params": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. Extension-specific configuration parameters."
        },
        "required": {
          "default": false,
          "description": "If true, the client must understand and comply with the extension's requirements.",
          "type": "boolean"
        },
        "uri": {
          "default": "",
          "description": "The unique URI identifying the extension.",
          "type": "string"
        }
      },
      "title": "Agent Extension",
      "type": "object"
    },
    "Agent Interface": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Declares a combination of a target URL, transport and protocol version for interacting with the agent.\n This allows agents to expose the same functionality over multiple protocol binding mechanisms.",
      "patternProperties": {
        "^(protocol_binding)$": {
          "default": "",
          "description": "The protocol binding supported at this URL. This is an open form string, to be\n easily extended for other protocol bindings. The core ones officially\n supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.",
          "type": "string"
        },
        "^(protocol_version)$": {
          "default": "",
          "description": "The version of the A2A protocol this interface exposes.\n Use the latest supported minor version per major version.\n Examples: \"0.3\", \"1.0\"",
          "type": "string"
        }
      },
      "properties": {
        "protocolBinding": {
          "default": "",
          "description": "The protocol binding supported at this URL. This is an open form string, to be\n easily extended for other protocol bindings. The core ones officially\n supported are `JSONRPC`, `GRPC` and `HTTP+JSON`.",
          "type": "string"
        },
        "protocolVersion": {
          "default": "",
          "description": "The version of the A2A protocol this interface exposes.\n Use the latest supported minor version per major version.\n Examples: \"0.3\", \"1.0\"",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Tenant ID to be used in the request when calling the agent.",
          "type": "string"
        },
        "url": {
          "default": "",
          "description": "The URL where this interface is available. Must be a valid absolute HTTPS URL in production.\n Example: \"https://api.example.com/a2a/v1\", \"https://grpc.example.com/a2a\"",
          "type": "string"
        }
      },
      "title": "Agent Interface",
      "type": "object"
    },
    "Agent Provider": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents the service provider of an agent.",
      "properties": {
        "organization": {
          "default": "",
          "description": "The name of the agent provider's organization.\n Example: \"Google\"",
          "type": "string"
        },
        "url": {
          "default": "",
          "description": "A URL for the agent provider's website or relevant documentation.\n Example: \"https://ai.google.dev\"",
          "type": "string"
        }
      },
      "title": "Agent Provider",
      "type": "object"
    },
    "Agent Skill": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a distinct capability or function that an agent can perform.",
      "patternProperties": {
        "^(input_modes)$": {
          "description": "The set of supported input media types for this skill, overriding the agent's defaults.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(output_modes)$": {
          "description": "The set of supported output media types for this skill, overriding the agent's defaults.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(security_requirements)$": {
          "description": "Security schemes necessary for this skill.",
          "items": {
            "$ref": "lf.a2a.v1.SecurityRequirement.jsonschema.json"
          },
          "type": "array"
        }
      },
      "properties": {
        "description": {
          "default": "",
          "description": "A detailed description of the skill.",
          "type": "string"
        },
        "examples": {
          "description": "Example prompts or scenarios that this skill can handle.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "id": {
          "default": "",
          "description": "A unique identifier for the agent's skill.",
          "type": "string"
        },
        "inputModes": {
          "description": "The set of supported input media types for this skill, overriding the agent's defaults.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "name": {
          "default": "",
          "description": "A human-readable name for the skill.",
          "type": "string"
        },
        "outputModes": {
          "description": "The set of supported output media types for this skill, overriding the agent's defaults.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "securityRequirements": {
          "description": "Security schemes necessary for this skill.",
          "items": {
            "$ref": "lf.a2a.v1.SecurityRequirement.jsonschema.json"
          },
          "type": "array"
        },
        "tags": {
          "description": "A set of keywords describing the skill's capabilities.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "title": "Agent Skill",
      "type": "object"
    },
    "Artifact": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Artifacts represent task outputs.",
      "patternProperties": {
        "^(artifact_id)$": {
          "default": "",
          "description": "Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.",
          "type": "string"
        }
      },
      "properties": {
        "artifactId": {
          "default": "",
          "description": "Unique identifier (e.g. UUID) for the artifact. It must be unique within a task.",
          "type": "string"
        },
        "description": {
          "default": "",
          "description": "Optional. A human readable description of the artifact.",
          "type": "string"
        },
        "extensions": {
          "description": "The URIs of extensions that are present or contributed to this Artifact.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. Metadata included with the artifact."
        },
        "name": {
          "default": "",
          "description": "A human readable name for the artifact.",
          "type": "string"
        },
        "parts": {
          "description": "The content of the artifact. Must contain at least one part.",
          "items": {
            "$ref": "lf.a2a.v1.Part.jsonschema.json"
          },
          "type": "array"
        }
      },
      "title": "Artifact",
      "type": "object"
    },
    "Authentication Info": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines authentication details, used for push notifications.",
      "properties": {
        "credentials": {
          "default": "",
          "description": "Push Notification credentials. Format depends on the scheme (e.g., token for Bearer).",
          "type": "string"
        },
        "scheme": {
          "default": "",
          "description": "HTTP Authentication Scheme from the [IANA registry](https://www.iana.org/assignments/http-authschemes/).\n Examples: `Bearer`, `Basic`, `Digest`.\n Scheme names are case-insensitive per [RFC 9110 Section 11.1](https://www.rfc-editor.org/rfc/rfc9110#section-11.1).",
          "type": "string"
        }
      },
      "title": "Authentication Info",
      "type": "object"
    },
    "Authorization CodeO Auth Flow": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines configuration details for the OAuth 2.0 Authorization Code flow.",
      "patternProperties": {
        "^(authorization_url)$": {
          "default": "",
          "description": "The authorization URL to be used for this flow.",
          "type": "string"
        },
        "^(pkce_required)$": {
          "default": false,
          "description": "Indicates if PKCE (RFC 7636) is required for this flow.\n PKCE should always be used for public clients and is recommended for all clients.",
          "type": "boolean"
        },
        "^(refresh_url)$": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "^(token_url)$": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "properties": {
        "authorizationUrl": {
          "default": "",
          "description": "The authorization URL to be used for this flow.",
          "type": "string"
        },
        "pkceRequired": {
          "default": false,
          "description": "Indicates if PKCE (RFC 7636) is required for this flow.\n PKCE should always be used for public clients and is recommended for all clients.",
          "type": "boolean"
        },
        "refreshUrl": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "scopes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The available scopes for the OAuth2 security scheme.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "tokenUrl": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "title": "Authorization CodeO Auth Flow",
      "type": "object"
    },
    "Cancel Task Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `CancelTask` method.",
      "properties": {
        "id": {
          "default": "",
          "description": "The resource ID of the task to cancel.",
          "type": "string"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "A flexible key-value map for passing additional context or parameters."
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Cancel Task Request",
      "type": "object"
    },
    "Client CredentialsO Auth Flow": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines configuration details for the OAuth 2.0 Client Credentials flow.",
      "patternProperties": {
        "^(refresh_url)$": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "^(token_url)$": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "properties": {
        "refreshUrl": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "scopes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The available scopes for the OAuth2 security scheme.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "tokenUrl": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "title": "Client CredentialsO Auth Flow",
      "type": "object"
    },
    "Delete Task Push Notification Config Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `DeleteTaskPushNotificationConfig` method.",
      "patternProperties": {
        "^(task_id)$": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        }
      },
      "properties": {
        "id": {
          "default": "",
          "description": "The resource ID of the configuration to delete.",
          "type": "string"
        },
        "taskId": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Delete Task Push Notification Config Request",
      "type": "object"
    },
    "Device CodeO Auth Flow": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628).\n This flow is designed for input-constrained devices such as IoT devices,\n and CLI tools where the user authenticates on a separate device.",
      "patternProperties": {
        "^(device_authorization_url)$": {
          "default": "",
          "description": "The device authorization endpoint URL.",
          "type": "string"
        },
        "^(refresh_url)$": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "^(token_url)$": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "properties": {
        "deviceAuthorizationUrl": {
          "default": "",
          "description": "The device authorization endpoint URL.",
          "type": "string"
        },
        "refreshUrl": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens.",
          "type": "string"
        },
        "scopes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The available scopes for the OAuth2 security scheme.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "tokenUrl": {
          "default": "",
          "description": "The token URL to be used for this flow.",
          "type": "string"
        }
      },
      "title": "Device CodeO Auth Flow",
      "type": "object"
    },
    "Get Extended Agent Card Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `GetExtendedAgentCard` method.",
      "properties": {
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Get Extended Agent Card Request",
      "type": "object"
    },
    "Get Task Push Notification Config Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `GetTaskPushNotificationConfig` method.",
      "patternProperties": {
        "^(task_id)$": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        }
      },
      "properties": {
        "id": {
          "default": "",
          "description": "The resource ID of the configuration to retrieve.",
          "type": "string"
        },
        "taskId": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Get Task Push Notification Config Request",
      "type": "object"
    },
    "Get Task Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `GetTask` method.",
      "patternProperties": {
        "^(history_length)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of most recent messages from the task's history to retrieve. An\n unset value means the client does not impose any limit. A value of zero is\n a request to not include any messages. The server MUST NOT return more\n messages than the provided value, but MAY apply a lower limit."
        }
      },
      "properties": {
        "historyLength": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of most recent messages from the task's history to retrieve. An\n unset value means the client does not impose any limit. A value of zero is\n a request to not include any messages. The server MUST NOT return more\n messages than the provided value, but MAY apply a lower limit."
        },
        "id": {
          "default": "",
          "description": "The resource ID of the task to retrieve.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Get Task Request",
      "type": "object"
    },
    "HTTP Auth Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme using HTTP authentication.",
      "patternProperties": {
        "^(bearer_format)$": {
          "default": "",
          "description": "A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\").\n Primarily for documentation purposes.",
          "type": "string"
        }
      },
      "properties": {
        "bearerFormat": {
          "default": "",
          "description": "A hint to the client to identify how the bearer token is formatted (e.g., \"JWT\").\n Primarily for documentation purposes.",
          "type": "string"
        },
        "description": {
          "default": "",
          "description": "An optional description for the security scheme.",
          "type": "string"
        },
        "scheme": {
          "default": "",
          "description": "The name of the HTTP Authentication scheme to be used in the Authorization header,\n as defined in RFC7235 (e.g., \"Bearer\").\n This value should be registered in the IANA Authentication Scheme registry.",
          "type": "string"
        }
      },
      "title": "HTTP Auth Security Scheme",
      "type": "object"
    },
    "ImplicitO Auth Flow": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Deprecated: Use Authorization Code + PKCE instead.",
      "patternProperties": {
        "^(authorization_url)$": {
          "default": "",
          "description": "The authorization URL to be used for this flow. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS",
          "type": "string"
        },
        "^(refresh_url)$": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS.",
          "type": "string"
        }
      },
      "properties": {
        "authorizationUrl": {
          "default": "",
          "description": "The authorization URL to be used for this flow. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS",
          "type": "string"
        },
        "refreshUrl": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS.",
          "type": "string"
        },
        "scopes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The available scopes for the OAuth2 security scheme. A map between the\n scope name and a short description for it. The map MAY be empty.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        }
      },
      "title": "ImplicitO Auth Flow",
      "type": "object"
    },
    "List Task Push Notification Configs Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `ListTaskPushNotificationConfigs` method.",
      "patternProperties": {
        "^(page_size)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "The maximum number of configurations to return."
        },
        "^(page_token)$": {
          "default": "",
          "description": "A page token received from a previous `ListTaskPushNotificationConfigsRequest` call.",
          "type": "string"
        },
        "^(task_id)$": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        }
      },
      "properties": {
        "pageSize": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "The maximum number of configurations to return."
        },
        "pageToken": {
          "default": "",
          "description": "A page token received from a previous `ListTaskPushNotificationConfigsRequest` call.",
          "type": "string"
        },
        "taskId": {
          "default": "",
          "description": "The parent task resource ID.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "List Task Push Notification Configs Request",
      "type": "object"
    },
    "List Task Push Notification Configs Response": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a successful response for the `ListTaskPushNotificationConfigs`\n method.",
      "patternProperties": {
        "^(next_page_token)$": {
          "default": "",
          "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.",
          "type": "string"
        }
      },
      "properties": {
        "configs": {
          "description": "The list of push notification configurations.",
          "items": {
            "$ref": "lf.a2a.v1.TaskPushNotificationConfig.jsonschema.json"
          },
          "type": "array"
        },
        "nextPageToken": {
          "default": "",
          "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.",
          "type": "string"
        }
      },
      "title": "List Task Push Notification Configs Response",
      "type": "object"
    },
    "List Tasks Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Parameters for listing tasks with optional filtering criteria.",
      "patternProperties": {
        "^(context_id)$": {
          "default": "",
          "description": "Filter tasks by context ID to get tasks from a specific conversation or session.",
          "type": "string"
        },
        "^(history_length)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of messages to include in each task's history."
        },
        "^(include_artifacts)$": {
          "description": "Whether to include artifacts in the returned tasks.\n Defaults to false to reduce payload size.",
          "type": "boolean"
        },
        "^(page_size)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of tasks to return. The service may return fewer than this value.\n If unspecified, at most 50 tasks will be returned.\n The minimum value is 1.\n The maximum value is 100."
        },
        "^(page_token)$": {
          "default": "",
          "description": "A page token, received from a previous `ListTasks` call.\n `ListTasksResponse.next_page_token`.\n Provide this to retrieve the subsequent page.",
          "type": "string"
        },
        "^(status_timestamp_after)$": {
          "$ref": "google.protobuf.Timestamp.jsonschema.json",
          "description": "Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., \"2023-10-27T10:00:00Z\").\n Only tasks with a status timestamp time greater than or equal to this value will be returned."
        }
      },
      "properties": {
        "contextId": {
          "default": "",
          "description": "Filter tasks by context ID to get tasks from a specific conversation or session.",
          "type": "string"
        },
        "historyLength": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of messages to include in each task's history."
        },
        "includeArtifacts": {
          "description": "Whether to include artifacts in the returned tasks.\n Defaults to false to reduce payload size.",
          "type": "boolean"
        },
        "pageSize": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of tasks to return. The service may return fewer than this value.\n If unspecified, at most 50 tasks will be returned.\n The minimum value is 1.\n The maximum value is 100."
        },
        "pageToken": {
          "default": "",
          "description": "A page token, received from a previous `ListTasks` call.\n `ListTasksResponse.next_page_token`.\n Provide this to retrieve the subsequent page.",
          "type": "string"
        },
        "status": {
          "anyOf": [
            {
              "pattern": "^TASK_STATE_UNSPECIFIED$",
              "type": "string"
            },
            {
              "enum": [
                "TASK_STATE_SUBMITTED",
                "TASK_STATE_WORKING",
                "TASK_STATE_COMPLETED",
                "TASK_STATE_FAILED",
                "TASK_STATE_CANCELED",
                "TASK_STATE_INPUT_REQUIRED",
                "TASK_STATE_REJECTED",
                "TASK_STATE_AUTH_REQUIRED"
              ],
              "type": "string"
            },
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            }
          ],
          "default": 0,
          "description": "Filter tasks by their current status state.",
          "title": "Task State"
        },
        "statusTimestampAfter": {
          "$ref": "google.protobuf.Timestamp.jsonschema.json",
          "description": "Filter tasks which have a status updated after the provided timestamp in ISO 8601 format (e.g., \"2023-10-27T10:00:00Z\").\n Only tasks with a status timestamp time greater than or equal to this value will be returned."
        },
        "tenant": {
          "default": "",
          "description": "Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "List Tasks Request",
      "type": "object"
    },
    "List Tasks Response": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Result object for `ListTasks` method containing an array of tasks and pagination information.",
      "patternProperties": {
        "^(next_page_token)$": {
          "default": "",
          "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.",
          "type": "string"
        },
        "^(page_size)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "The page size used for this response."
        },
        "^(total_size)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "Total number of tasks available (before pagination)."
        }
      },
      "properties": {
        "nextPageToken": {
          "default": "",
          "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.",
          "type": "string"
        },
        "pageSize": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "The page size used for this response."
        },
        "tasks": {
          "description": "Array of tasks matching the specified criteria.",
          "items": {
            "$ref": "lf.a2a.v1.Task.jsonschema.json"
          },
          "type": "array"
        },
        "totalSize": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "default": 0,
          "description": "Total number of tasks available (before pagination)."
        }
      },
      "title": "List Tasks Response",
      "type": "object"
    },
    "Message": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "`Message` is one unit of communication between client and server. It can be\n associated with a context and/or a task. For server messages, `context_id` must\n be provided, and `task_id` only if a task was created. For client messages, both\n fields are optional, with the caveat that if both are provided, they have to\n match (the `context_id` has to be the one that is set on the task). If only\n `task_id` is provided, the server will infer `context_id` from it.",
      "patternProperties": {
        "^(context_id)$": {
          "default": "",
          "description": "Optional. The context id of the message. If set, the message will be associated with the given context.",
          "type": "string"
        },
        "^(message_id)$": {
          "default": "",
          "description": "The unique identifier (e.g. UUID) of the message. This is created by the message creator.",
          "type": "string"
        },
        "^(reference_task_ids)$": {
          "description": "A list of task IDs that this message references for additional context.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(task_id)$": {
          "default": "",
          "description": "Optional. The task id of the message. If set, the message will be associated with the given task.",
          "type": "string"
        }
      },
      "properties": {
        "contextId": {
          "default": "",
          "description": "Optional. The context id of the message. If set, the message will be associated with the given context.",
          "type": "string"
        },
        "extensions": {
          "description": "The URIs of extensions that are present or contributed to this Message.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "messageId": {
          "default": "",
          "description": "The unique identifier (e.g. UUID) of the message. This is created by the message creator.",
          "type": "string"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. Any metadata to provide along with the message."
        },
        "parts": {
          "description": "Parts is the container of the message content.",
          "items": {
            "$ref": "lf.a2a.v1.Part.jsonschema.json"
          },
          "type": "array"
        },
        "referenceTaskIds": {
          "description": "A list of task IDs that this message references for additional context.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "role": {
          "anyOf": [
            {
              "pattern": "^ROLE_UNSPECIFIED$",
              "type": "string"
            },
            {
              "enum": [
                "ROLE_USER",
                "ROLE_AGENT"
              ],
              "type": "string"
            },
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            }
          ],
          "default": 0,
          "description": "Identifies the sender of the message.",
          "title": "Role"
        },
        "taskId": {
          "default": "",
          "description": "Optional. The task id of the message. If set, the message will be associated with the given task.",
          "type": "string"
        }
      },
      "title": "Message",
      "type": "object"
    },
    "Mutual Tls Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme using mTLS authentication.",
      "properties": {
        "description": {
          "default": "",
          "description": "An optional description for the security scheme.",
          "type": "string"
        }
      },
      "title": "Mutual Tls Security Scheme",
      "type": "object"
    },
    "O Auth2 Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme using OAuth 2.0.",
      "patternProperties": {
        "^(oauth2_metadata_url)$": {
          "default": "",
          "description": "URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).\n TLS is required.",
          "type": "string"
        }
      },
      "properties": {
        "description": {
          "default": "",
          "description": "An optional description for the security scheme.",
          "type": "string"
        },
        "flows": {
          "$ref": "lf.a2a.v1.OAuthFlows.jsonschema.json",
          "description": "An object containing configuration information for the supported OAuth 2.0 flows."
        },
        "oauth2MetadataUrl": {
          "default": "",
          "description": "URL to the OAuth2 authorization server metadata [RFC 8414](https://datatracker.ietf.org/doc/html/rfc8414).\n TLS is required.",
          "type": "string"
        }
      },
      "title": "O Auth2 Security Scheme",
      "type": "object"
    },
    "O Auth Flows": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines the configuration for the supported OAuth 2.0 flows.",
      "patternProperties": {
        "^(authorization_code)$": {
          "$ref": "lf.a2a.v1.AuthorizationCodeOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Authorization Code flow."
        },
        "^(client_credentials)$": {
          "$ref": "lf.a2a.v1.ClientCredentialsOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Client Credentials flow."
        },
        "^(device_code)$": {
          "$ref": "lf.a2a.v1.DeviceCodeOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Device Code flow."
        }
      },
      "properties": {
        "authorizationCode": {
          "$ref": "lf.a2a.v1.AuthorizationCodeOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Authorization Code flow."
        },
        "clientCredentials": {
          "$ref": "lf.a2a.v1.ClientCredentialsOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Client Credentials flow."
        },
        "deviceCode": {
          "$ref": "lf.a2a.v1.DeviceCodeOAuthFlow.jsonschema.json",
          "description": "Configuration for the OAuth Device Code flow."
        },
        "implicit": {
          "$ref": "lf.a2a.v1.ImplicitOAuthFlow.jsonschema.json",
          "description": "Deprecated: Use Authorization Code + PKCE instead."
        },
        "password": {
          "$ref": "lf.a2a.v1.PasswordOAuthFlow.jsonschema.json",
          "description": "Deprecated: Use Authorization Code + PKCE or Device Code."
        }
      },
      "title": "O Auth Flows",
      "type": "object"
    },
    "Open Id Connect Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme using OpenID Connect.",
      "patternProperties": {
        "^(open_id_connect_url)$": {
          "default": "",
          "description": "The [OpenID Connect Discovery URL](https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC provider's metadata.",
          "type": "string"
        }
      },
      "properties": {
        "description": {
          "default": "",
          "description": "An optional description for the security scheme.",
          "type": "string"
        },
        "openIdConnectUrl": {
          "default": "",
          "description": "The [OpenID Connect Discovery URL](https://openid.net/specs/openid-connect-discovery-1_0.html) for the OIDC provider's metadata.",
          "type": "string"
        }
      },
      "title": "Open Id Connect Security Scheme",
      "type": "object"
    },
    "Part": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "`Part` represents a container for a section of communication content.\n Parts can be purely textual, some sort of file (image, video, etc) or\n a structured data blob (i.e. JSON).",
      "patternProperties": {
        "^(media_type)$": {
          "default": "",
          "description": "The `media_type` (MIME type) of the part content (e.g., \"text/plain\", \"application/json\", \"image/png\").\n This field is available for all part types.",
          "type": "string"
        }
      },
      "properties": {
        "data": {
          "$ref": "google.protobuf.Value.jsonschema.json",
          "description": "Arbitrary structured `data` as a JSON value (object, array, string, number, boolean, or null)."
        },
        "filename": {
          "default": "",
          "description": "An optional `filename` for the file (e.g., \"document.pdf\").",
          "type": "string"
        },
        "mediaType": {
          "default": "",
          "description": "The `media_type` (MIME type) of the part content (e.g., \"text/plain\", \"application/json\", \"image/png\").\n This field is available for all part types.",
          "type": "string"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. metadata associated with this part."
        },
        "raw": {
          "description": "The `raw` byte content of a file. In JSON serialization, this is encoded as a base64 string.",
          "pattern": "^[A-Za-z0-9+/]*={0,2}$",
          "type": "string"
        },
        "text": {
          "description": "The string content of the `text` part.",
          "type": "string"
        },
        "url": {
          "description": "A `url` pointing to the file's content.",
          "type": "string"
        }
      },
      "title": "Part",
      "type": "object"
    },
    "PasswordO Auth Flow": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Deprecated: Use Authorization Code + PKCE or Device Code.",
      "patternProperties": {
        "^(refresh_url)$": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS.",
          "type": "string"
        },
        "^(token_url)$": {
          "default": "",
          "description": "The token URL to be used for this flow. This MUST be in the form of a URL.\n The OAuth2 standard requires the use of TLS.",
          "type": "string"
        }
      },
      "properties": {
        "refreshUrl": {
          "default": "",
          "description": "The URL to be used for obtaining refresh tokens. This MUST be in the\n form of a URL. The OAuth2 standard requires the use of TLS.",
          "type": "string"
        },
        "scopes": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "The available scopes for the OAuth2 security scheme. A map between the\n scope name and a short description for it. The map MAY be empty.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        },
        "tokenUrl": {
          "default": "",
          "description": "The token URL to be used for this flow. This MUST be in the form of a URL.\n The OAuth2 standard requires the use of TLS.",
          "type": "string"
        }
      },
      "title": "PasswordO Auth Flow",
      "type": "object"
    },
    "Security Requirement": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines the security requirements for an agent.",
      "properties": {
        "schemes": {
          "additionalProperties": {
            "$ref": "lf.a2a.v1.StringList.jsonschema.json"
          },
          "description": "A map of security schemes to the required scopes.",
          "propertyNames": {
            "type": "string"
          },
          "type": "object"
        }
      },
      "title": "Security Requirement",
      "type": "object"
    },
    "Security Scheme": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Defines a security scheme that can be used to secure an agent's endpoints.\n This is a discriminated union type based on the OpenAPI 3.2 Security Scheme Object.\n See: https://spec.openapis.org/oas/v3.2.0.html#security-scheme-object",
      "patternProperties": {
        "^(api_key_security_scheme)$": {
          "$ref": "lf.a2a.v1.APIKeySecurityScheme.jsonschema.json",
          "description": "API key-based authentication."
        },
        "^(http_auth_security_scheme)$": {
          "$ref": "lf.a2a.v1.HTTPAuthSecurityScheme.jsonschema.json",
          "description": "HTTP authentication (Basic, Bearer, etc.)."
        },
        "^(mtls_security_scheme)$": {
          "$ref": "lf.a2a.v1.MutualTlsSecurityScheme.jsonschema.json",
          "description": "Mutual TLS authentication."
        },
        "^(oauth2_security_scheme)$": {
          "$ref": "lf.a2a.v1.OAuth2SecurityScheme.jsonschema.json",
          "description": "OAuth 2.0 authentication."
        },
        "^(open_id_connect_security_scheme)$": {
          "$ref": "lf.a2a.v1.OpenIdConnectSecurityScheme.jsonschema.json",
          "description": "OpenID Connect authentication."
        }
      },
      "properties": {
        "apiKeySecurityScheme": {
          "$ref": "lf.a2a.v1.APIKeySecurityScheme.jsonschema.json",
          "description": "API key-based authentication."
        },
        "httpAuthSecurityScheme": {
          "$ref": "lf.a2a.v1.HTTPAuthSecurityScheme.jsonschema.json",
          "description": "HTTP authentication (Basic, Bearer, etc.)."
        },
        "mtlsSecurityScheme": {
          "$ref": "lf.a2a.v1.MutualTlsSecurityScheme.jsonschema.json",
          "description": "Mutual TLS authentication."
        },
        "oauth2SecurityScheme": {
          "$ref": "lf.a2a.v1.OAuth2SecurityScheme.jsonschema.json",
          "description": "OAuth 2.0 authentication."
        },
        "openIdConnectSecurityScheme": {
          "$ref": "lf.a2a.v1.OpenIdConnectSecurityScheme.jsonschema.json",
          "description": "OpenID Connect authentication."
        }
      },
      "title": "Security Scheme",
      "type": "object"
    },
    "Send Message Configuration": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Configuration of a send message request.",
      "patternProperties": {
        "^(accepted_output_modes)$": {
          "description": "A list of media types the client is prepared to accept for response parts.\n Agents SHOULD use this to tailor their output.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "^(history_length)$": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of most recent messages from the task's history to retrieve in\n the response. An unset value means the client does not impose any limit. A\n value of zero is a request to not include any messages. The server MUST NOT\n return more messages than the provided value, but MAY apply a lower limit."
        },
        "^(return_immediately)$": {
          "default": false,
          "description": "If `true`, the operation returns immediately after creating the task,\n even if processing is still in progress.\n If `false` (default), the operation MUST wait until the task reaches a\n terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted\n (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.",
          "type": "boolean"
        },
        "^(task_push_notification_config)$": {
          "$ref": "lf.a2a.v1.TaskPushNotificationConfig.jsonschema.json",
          "description": "Configuration for the agent to send push notifications for task updates.\n Task id should be empty when sending this configuration in a `SendMessage` request."
        }
      },
      "properties": {
        "acceptedOutputModes": {
          "description": "A list of media types the client is prepared to accept for response parts.\n Agents SHOULD use this to tailor their output.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "historyLength": {
          "anyOf": [
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            },
            {
              "pattern": "^-?[0-9]+$",
              "type": "string"
            }
          ],
          "description": "The maximum number of most recent messages from the task's history to retrieve in\n the response. An unset value means the client does not impose any limit. A\n value of zero is a request to not include any messages. The server MUST NOT\n return more messages than the provided value, but MAY apply a lower limit."
        },
        "returnImmediately": {
          "default": false,
          "description": "If `true`, the operation returns immediately after creating the task,\n even if processing is still in progress.\n If `false` (default), the operation MUST wait until the task reaches a\n terminal (`COMPLETED`, `FAILED`, `CANCELED`, `REJECTED`) or interrupted\n (`INPUT_REQUIRED`, `AUTH_REQUIRED`) state before returning.",
          "type": "boolean"
        },
        "taskPushNotificationConfig": {
          "$ref": "lf.a2a.v1.TaskPushNotificationConfig.jsonschema.json",
          "description": "Configuration for the agent to send push notifications for task updates.\n Task id should be empty when sending this configuration in a `SendMessage` request."
        }
      },
      "title": "Send Message Configuration",
      "type": "object"
    },
    "Send Message Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `SendMessage` method.",
      "properties": {
        "configuration": {
          "$ref": "lf.a2a.v1.SendMessageConfiguration.jsonschema.json",
          "description": "Configuration for the send request."
        },
        "message": {
          "$ref": "lf.a2a.v1.Message.jsonschema.json",
          "description": "The message to send to the agent."
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "A flexible key-value map for passing additional context or parameters."
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Send Message Request",
      "type": "object"
    },
    "Send Message Response": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents the response for the `SendMessage` method.",
      "properties": {
        "message": {
          "$ref": "lf.a2a.v1.Message.jsonschema.json",
          "description": "A message from the agent."
        },
        "task": {
          "$ref": "lf.a2a.v1.Task.jsonschema.json",
          "description": "The task created or updated by the message."
        }
      },
      "title": "Send Message Response",
      "type": "object"
    },
    "Stream Response": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A wrapper object used in streaming operations to encapsulate different types of response data.",
      "patternProperties": {
        "^(artifact_update)$": {
          "$ref": "lf.a2a.v1.TaskArtifactUpdateEvent.jsonschema.json",
          "description": "An event indicating a task artifact update."
        },
        "^(status_update)$": {
          "$ref": "lf.a2a.v1.TaskStatusUpdateEvent.jsonschema.json",
          "description": "An event indicating a task status update."
        }
      },
      "properties": {
        "artifactUpdate": {
          "$ref": "lf.a2a.v1.TaskArtifactUpdateEvent.jsonschema.json",
          "description": "An event indicating a task artifact update."
        },
        "message": {
          "$ref": "lf.a2a.v1.Message.jsonschema.json",
          "description": "A Message object containing a message from the agent."
        },
        "statusUpdate": {
          "$ref": "lf.a2a.v1.TaskStatusUpdateEvent.jsonschema.json",
          "description": "An event indicating a task status update."
        },
        "task": {
          "$ref": "lf.a2a.v1.Task.jsonschema.json",
          "description": "A Task object containing the current state of the task."
        }
      },
      "title": "Stream Response",
      "type": "object"
    },
    "String List": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A list of strings.",
      "properties": {
        "list": {
          "description": "The individual string values.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "title": "String List",
      "type": "object"
    },
    "Subscribe To Task Request": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "Represents a request for the `SubscribeToTask` method.",
      "properties": {
        "id": {
          "default": "",
          "description": "The resource ID of the task to subscribe to.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID, provided as a path parameter.",
          "type": "string"
        }
      },
      "title": "Subscribe To Task Request",
      "type": "object"
    },
    "Task": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "`Task` is the core unit of action for A2A. It has a current status\n and when results are created for the task they are stored in the\n artifact. If there are multiple turns for a task, these are stored in\n history.",
      "patternProperties": {
        "^(context_id)$": {
          "default": "",
          "description": "Unique identifier (e.g. UUID) for the contextual collection of interactions\n (tasks and messages).",
          "type": "string"
        }
      },
      "properties": {
        "artifacts": {
          "description": "A set of output artifacts for a `Task`.",
          "items": {
            "$ref": "lf.a2a.v1.Artifact.jsonschema.json"
          },
          "type": "array"
        },
        "contextId": {
          "default": "",
          "description": "Unique identifier (e.g. UUID) for the contextual collection of interactions\n (tasks and messages).",
          "type": "string"
        },
        "history": {
          "description": "The history of interactions from a `Task`.",
          "items": {
            "$ref": "lf.a2a.v1.Message.jsonschema.json"
          },
          "type": "array"
        },
        "id": {
          "default": "",
          "description": "Unique identifier (e.g. UUID) for the task, generated by the server for a\n new task.",
          "type": "string"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "A key/value object to store custom metadata about a task."
        },
        "status": {
          "$ref": "lf.a2a.v1.TaskStatus.jsonschema.json",
          "description": "The current status of a `Task`, including `state` and a `message`."
        }
      },
      "title": "Task",
      "type": "object"
    },
    "Task Artifact Update Event": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A task delta where an artifact has been generated.",
      "patternProperties": {
        "^(context_id)$": {
          "default": "",
          "description": "The ID of the context that this task belongs to.",
          "type": "string"
        },
        "^(last_chunk)$": {
          "default": false,
          "description": "If true, this is the final chunk of the artifact.",
          "type": "boolean"
        },
        "^(task_id)$": {
          "default": "",
          "description": "The ID of the task for this artifact.",
          "type": "string"
        }
      },
      "properties": {
        "append": {
          "default": false,
          "description": "If true, the content of this artifact should be appended to a previously\n sent artifact with the same ID.",
          "type": "boolean"
        },
        "artifact": {
          "$ref": "lf.a2a.v1.Artifact.jsonschema.json",
          "description": "The artifact that was generated or updated."
        },
        "contextId": {
          "default": "",
          "description": "The ID of the context that this task belongs to.",
          "type": "string"
        },
        "lastChunk": {
          "default": false,
          "description": "If true, this is the final chunk of the artifact.",
          "type": "boolean"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. Metadata associated with the artifact update."
        },
        "taskId": {
          "default": "",
          "description": "The ID of the task for this artifact.",
          "type": "string"
        }
      },
      "title": "Task Artifact Update Event",
      "type": "object"
    },
    "Task Push Notification Config": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A container associating a push notification configuration with a specific task.",
      "patternProperties": {
        "^(task_id)$": {
          "default": "",
          "description": "The ID of the task this configuration is associated with.",
          "type": "string"
        }
      },
      "properties": {
        "authentication": {
          "$ref": "lf.a2a.v1.AuthenticationInfo.jsonschema.json",
          "description": "Authentication information required to send the notification."
        },
        "id": {
          "default": "",
          "description": "The push notification configuration details.\n A unique identifier (e.g. UUID) for this push notification configuration.",
          "type": "string"
        },
        "taskId": {
          "default": "",
          "description": "The ID of the task this configuration is associated with.",
          "type": "string"
        },
        "tenant": {
          "default": "",
          "description": "Optional. Tenant ID.",
          "type": "string"
        },
        "token": {
          "default": "",
          "description": "A token unique for this task or session.",
          "type": "string"
        },
        "url": {
          "default": "",
          "description": "The URL where the notification should be sent.",
          "type": "string"
        }
      },
      "title": "Task Push Notification Config",
      "type": "object"
    },
    "Task Status": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "A container for the status of a task",
      "properties": {
        "message": {
          "$ref": "lf.a2a.v1.Message.jsonschema.json",
          "description": "A message associated with the status."
        },
        "state": {
          "anyOf": [
            {
              "pattern": "^TASK_STATE_UNSPECIFIED$",
              "type": "string"
            },
            {
              "enum": [
                "TASK_STATE_SUBMITTED",
                "TASK_STATE_WORKING",
                "TASK_STATE_COMPLETED",
                "TASK_STATE_FAILED",
                "TASK_STATE_CANCELED",
                "TASK_STATE_INPUT_REQUIRED",
                "TASK_STATE_REJECTED",
                "TASK_STATE_AUTH_REQUIRED"
              ],
              "type": "string"
            },
            {
              "maximum": 2147483647,
              "minimum": -2147483648,
              "type": "integer"
            }
          ],
          "default": 0,
          "description": "The current state of this task.",
          "title": "Task State"
        },
        "timestamp": {
          "$ref": "google.protobuf.Timestamp.jsonschema.json",
          "description": "ISO 8601 Timestamp when the status was recorded.\n Example: \"2023-10-27T10:00:00Z\""
        }
      },
      "title": "Task Status",
      "type": "object"
    },
    "Task Status Update Event": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "additionalProperties": false,
      "description": "An event sent by the agent to notify the client of a change in a task's status.",
      "patternProperties": {
        "^(context_id)$": {
          "default": "",
          "description": "The ID of the context that the task belongs to.",
          "type": "string"
        },
        "^(task_id)$": {
          "default": "",
          "description": "The ID of the task that has changed.",
          "type": "string"
        }
      },
      "properties": {
        "contextId": {
          "default": "",
          "description": "The ID of the context that the task belongs to.",
          "type": "string"
        },
        "metadata": {
          "$ref": "google.protobuf.Struct.jsonschema.json",
          "description": "Optional. Metadata associated with the task update."
        },
        "status": {
          "$ref": "lf.a2a.v1.TaskStatus.jsonschema.json",
          "description": "The new status of the task."
        },
        "taskId": {
          "default": "",
          "description": "The ID of the task that has changed.",
          "type": "string"
        }
      },
      "title": "Task Status Update Event",
      "type": "object"
    }
  }
}
