发现
先读取 Agent Card,确认支持的能力、协议版本和端点。
/.well-known/agent-card.jsonAI 智能体可以在这里读取李伯阳律师的公开资料和可引用的原始网页;经用户明确确认后,也可以把问询直接转交到他的邮箱。
Retrieve verified public information and canonical sources about Boyang Li, or relay a user-authorized inquiry directly to his email.
先读取 Agent Card,确认支持的能力、协议版本和端点。
/.well-known/agent-card.json读取精简或完整索引;普通网页也支持通过 Accept: text/markdown 获取 Markdown。
向用户展示收件人和完整内容,取得明确确认后,再调用 A2A 或联系接口。
OpenAPI 3.1
向 https://www.lslby.com/a2a 发送 SendMessage。结构化动作
profile.get 会返回身份、专业领域、公开联系方式与可引用来源;仅发送文本也会返回同一组资料。
POST /a2a HTTP/1.1
Host: www.lslby.com
Content-Type: application/json
A2A-Version: 1.0
{
"jsonrpc": "2.0",
"id": "profile-1",
"method": "SendMessage",
"params": {
"message": {
"messageId": "<uuid>",
"role": "ROLE_USER",
"parts": [
{
"data": { "action": "profile.get" },
"mediaType": "application/json"
}
]
}
}
} 智能体必须先向用户展示收件人(李伯阳)和最终发送的内容,取得明确确认后,再选用 A2A 或更简单的 REST 接口发送。
POST /a2a HTTP/1.1
Host: www.lslby.com
Content-Type: application/json
A2A-Version: 1.0
{
"jsonrpc": "2.0",
"id": "contact-1",
"method": "SendMessage",
"params": {
"message": {
"messageId": "<stable-uuid-for-retries>",
"role": "ROLE_USER",
"parts": [
{
"data": {
"action": "contact.send",
"contact": {
"name": "Sender name",
"email": "sender@example.com",
"company": "Optional company",
"wechat": "Optional WeChat ID",
"subject": "Optional subject",
"message": "Exact message approved by the user",
"userAuthorized": true
},
"agent": {
"name": "Calling agent",
"url": "https://agent.example.com"
}
},
"mediaType": "application/json"
}
]
}
}
} POST /api/contact HTTP/1.1
Host: www.lslby.com
Content-Type: application/json
Idempotency-Key: <stable-key-for-retries>
{
"name": "Sender name",
"email": "sender@example.com",
"company": "Optional company",
"wechat": "Optional WeChat ID",
"subject": "Optional subject",
"message": "Exact message approved by the user",
"userAuthorized": true,
"agent": {
"name": "Calling agent",
"url": "https://agent.example.com"
}
} HTTP/1.1 202 Accepted
Content-Type: application/json
{
"ok": true,
"status": "accepted",
"delivery": "sent",
"submissionId": "<id>",
"duplicate": false
} HTTP/1.1 429 Too Many Requests
Content-Type: application/json
{
"ok": false,
"code": "SUBMISSION_UNAVAILABLE",
"errors": ["暂时无法提交,请稍后重试或直接发送邮件"]
}
为避免泄露反滥用规则,所有失败统一返回 SUBMISSION_UNAVAILABLE;以 HTTP 状态区分:422 字段不合规、413 内容过大、429 频率受限(等待后重试)、503 结果不明(保持相同标识重试)。A2A 的成功结果位于 result.message.parts[].data,action 为 contact.accepted。
name、email、message、userAuthorized: true。可选:company、wechat、subject。
A2A 使用稳定的 messageId;REST 使用 Idempotency-Key。发送失败或结果不明时,保留同一标识和相同内容重试;成功后或修改内容时使用新标识。邮件服务的幂等保护期限为 24 小时。
accepted 只表示邮件服务已接受发送,不代表已阅读、同意受理或建立律师客户关系。
请勿通过公开接口发送身份证件、原始证据、完整合同、商业秘密或其他高度敏感材料。完成利益冲突核查与委托确认前,提交信息不会当然建立律师客户关系。
Do not send identity documents, original evidence, complete contracts, trade secrets, or other highly sensitive material through the public endpoints. Submission does not create an attorney-client relationship.