@integraledger/lcp/a2a
The exports of @integraledger/lcp/a2a.
Interfaces
A2aAgentExtension
Properties
A2aTask
Indexable
[
k:string]:Json|undefined
Properties
Variables
A2A_EXTENSION_URIS
constA2A_EXTENSION_URIS: readonlystring[]
The extension's URIs, in order of preference. The first is the one written when the client activated none.
binding
constbinding:Refusal
A2A binds nothing: the refusal given wherever an A2A pairing is asked for.
delivery
constdelivery:object
What the carrier proves.
Type Declaration
Functions
agentExtension()
agentExtension(
o?):A2aAgentExtension[]
One Agent Card capabilities.extensions[] entry per listed URI. required defaults to false.
Parameters
| Parameter | Type |
|---|---|
o? | { required?: boolean; } |
o.required? | boolean |
Returns
place()
A copy of the task whose metadata carries {type, value, legalContextUrl} under the listed URI the request's
A2A-Extensions value activated, or the first listed URI. Other metadata is kept.
Parameters
| Parameter | Type |
|---|---|
task | A2aTask |
h | `0x${string}` |
link | string |
a2aExtensions? | string |
Returns
read()
read(
task):Refusal| {h:`0x${string}`;link:string; }
The hash and the link from the task's metadata, under a listed URI. No other key is read. Values under two listed
URIs must agree.
Parameters
| Parameter | Type |
|---|---|
task | A2aTask |
Returns
Refusal | { h: `0x${string}`; link: string; }
requested()
requested(
a2aExtensions):boolean
True when the request's A2A-Extensions value names a listed URI exactly: the value split on commas, each element
trimmed of SP and HTAB, compared case-sensitively.
Parameters
| Parameter | Type |
|---|---|
a2aExtensions | string | undefined |
Returns
boolean
Last updated on