// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-a2a"]
= A2A
:linkattrs:
:cq-artifact-id: camel-quarkus-a2a
:cq-native-supported: true
:cq-status: Preview
:cq-status-deprecation: Preview
:cq-description: A2A endpoint for agent-to-agent communication.
:cq-deprecated: false
:cq-jvm-since: 3.37.0
:cq-native-since: 3.37.0

ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##3.37.0## [.badge-key]##Native since##[.badge-supported]##3.37.0##
endif::[]

A2A endpoint for agent-to-agent communication.

[id="extensions-a2a-whats-inside"]
== What's inside

* xref:{cq-camel-components}::a2a-component.adoc[A2A component], URI syntax: `a2a:agentCardSource`

Please refer to the above link for usage and configuration details.

[id="extensions-a2a-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-a2a[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]

Or add the coordinates to your existing project:

[source,xml]
----
<dependency>
    <groupId>org.apache.camel.quarkus</groupId>
    <artifactId>camel-quarkus-a2a</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]

[id="extensions-a2a-usage"]
== Usage
[id="extensions-a2a-usage-agent-card-json-files-in-native-mode"]
=== Agent Card JSON files in native mode

If you use JSON files to define agent cards that are loaded from the classpath, you must ensure they are included in the native image.
Add the `quarkus.native.resources.includes` configuration property to `application.properties`. For example:

[source,properties]
----
quarkus.native.resources.includes=cards/*.json
----

More information about selecting resources for inclusion in the native executable can be found at xref:user-guide/native-mode.adoc#embedding-resource-in-native-executable[Embedding resources in native executable].

