本页用途
把本页作为针对实时 UAI-1 表é¢çš„æœ€çŸå…¬å¼€æŽ¥å…¥åŒ…ã€‚å®ƒæŠŠèµ·æ¥æ–‡ä»¶ã€å¯ç›´æŽ¥æäº¤åˆ°éªŒè¯å™¨çš„è½½è·ã€mock exchange 示例ã€å®žæ–½è¯æ®æ¸…å•ã€ä¸€è‡´æ€§ fixture 包以åŠå®žæ–½ä¸‹ä¸€æ¥é›†ä¸åœ¨ä¸€ä¸ªå…¬å¼€æ•°æ®åŒ…里。
套件包å«çš„内容
- å¯ç›´æŽ¥å¤åˆ¶çš„é¦–æ¡æ¶ˆæ¯ã€éªŒè¯è¯·æ±‚与å‘布评审交接文件。
- 适用于 curlã€PowerShellã€Python 与 TypeScript 的多è¯è¨€èµ·æ¥è°ƒç”¨ã€‚
- 一份å‚考 mock-exchange æ•°æ®åŒ…ã€ä¸€ä»½å®žæ–½è¯æ®æ¸…å•ã€ä¸€ä»½åŒ…嫿£å‘与åå‘验è¯å™¨ç”¨ä¾‹çš„一致性 fixture 包,以åŠå›žåˆ°æ¨¡å¼ã€æ³¨å†Œè¡¨ã€ç¤ºä¾‹å’Œå®žæ–½è½¨é“的直接链接。
何时使用
- 当团队需è¦ä»Žé˜…读 UAI-1 直接走到一个å¯å¤ç”¨ã€ç”±éªŒè¯å™¨èƒŒä¹¦çš„首次数æ®åŒ…时,从这里开始。
- å½“ç¬¬ä¸€æ¬¡è¯æ˜Žéœ€è¦è¿›å…¥å‘布评审时,è¿è¡Œ fixture 包,并填写实施åç§°ã€ç‰ˆæœ¬ã€profile 范围ã€éªŒè¯å™¨ç»“æžœã€fixture 引用ã€å˜æ›´æ—¥å¿—链接和支æŒè¾¹ç•Œã€‚
- å½“ä½ éœ€è¦å®Œæ•´è·¯ç”±æ¸…å•与 OpenAPI 契约时,转到 API å‚考。
- 当该数æ®åŒ…éœ€è¦æ‰©å±•为å¯åŠ¨è¯„å®¡æˆ–å›žå½’æ£€æŸ¥æ‰€ç”¨çš„æ›´å®Œæ•´è¯æ®åŒ…时,转到 一致性包。
å·²å‘布的接入包
使用下é¢çš„æŽ¥å…¥å¥—件获å–当å‰é¦–æ¬¡è¯æ˜Žæ•°æ®åŒ…ï¼Œå¹¶æŠŠç²¾ç¡®èµ·æ¥æ–‡ä»¶ã€è¯æ®æ¸…å•å’Œ fixture åŒ…ä¿æŒåœ¨ä¸€èµ·ã€‚
公开记录项
UAI-1
- 生成时间
- 2026-04-26T20:12:12+00:00
- 公开记录项
- 4
公开记录项
公开记录项
- 此处说明当前公开记录、证据路径和支持边界。
- 此处说明当前公开记录、证据路径和支持边界。
- 此处说明当前公开记录、证据路径和支持边界。
- 此处说明当前公开记录、证据路径和支持边界。
公开记录项
公开记录项
此处说明当前公开记录、证据路径和支持边界。
相关页面
公开记录项
/wp-json/uaix/v1/catalog
公开记录项
/wp-json/uaix/v1/adoption-kit
验证
/wp-json/uaix/v1/validate
公开记录项
/wp-json/uaix/v1/mock-exchange
公开记录项
/wp-json/uaix/v1/conformance-pack
公开记录项
公开记录项
- 先打开已发布的采用工具包页面或 JSON 路由,让入门从当前公开数据包开始,而不是从私有笔记开始。
- 解析一个起步配置文件,然后把它的模式、注册表条目和示例 fixture 一起保留为首次证明包。
- 运行验证器,并把生成的一致性记录附在评审时使用的准确起步数据包旁边。
- 当运行时轨道尚未发布自身实现、但你需要一个实时一致响应包时,把同一数据包提交到模拟交换。
- 在从首次证明推进到公开发布或支持表述前,填写实现证据清单。
- 在扩大发布数据包前,使用一致性 fixture 包检查当前正向和反向验证器行为。
- 当候选实现需要展示 A2A、MCP、OpenAPI、DID/VC 或 Trace Context 证据如何映射到 UAI-1 记录时,使用桥接证据包。
- 在对外提出支持声明前,把证明包带入已命名实现轨道、一致性包和发布轨迹。
{
"adoption_kit_url": "http://uiax.org/wp-json/uaix/v1/adoption-kit",
"download_url": "http://uiax.org/wp-json/uaix/v1/adoption-kit?download=1",
"starter_files": [
{
"label": "Starter message",
"filename": "starter-message.json",
"top_level_keys": [
"uai_version",
"profile",
"message_id",
"source",
"target",
"conversation",
"delivery",
"trust",
"body",
"provenance",
"integrity",
"extensions"
]
},
{
"label": "Validation request",
"filename": "validate-request.json",
"top_level_keys": [
"message",
"normalization_mode",
"format"
]
},
{
"label": "Mock exchange request",
"filename": "mock-exchange-request.json",
"top_level_keys": [
"scenario",
"format",
"message"
]
},
{
"label": "一致性 record",
"filename": "uai-conformance-record.json",
"top_level_keys": [
"uai_version",
"profile",
"message_id",
"source",
"target",
"conversation",
"delivery",
"trust",
"body",
"provenance",
"integrity",
"extensions"
]
},
{
"label": "Implementation evidence checklist",
"filename": "implementation-evidence-checklist.json",
"top_level_keys": [
0,
1,
2,
3,
4,
5
]
},
{
"label": "一致性 fixture pack",
"filename": "conformance-fixture-pack.json",
"top_level_keys": [
"kind",
"generated_at",
"current_release",
"uai_version",
"profile_id",
"purpose",
"fixture_count",
"positive_count",
"negative_count",
"coverage",
"canonical_hash_equivalence",
"route_contract",
"cases"
]
},
{
"label": "Bridge evidence pack",
"filename": "bridge-evidence-pack.json",
"top_level_keys": [
"kind",
"generated_at",
"standard_family",
"current_release",
"uai_version",
"release_date",
"description",
"support_boundary",
"case_count",
"validated_case_count",
"adjacent_standard_count",
"adjacent_standards",
"uai_profiles",
"available_in",
"verification",
"cases"
]
}
],
"use": "Fetch the adoption kit JSON for the full starter file contents."
}
{
"kind": "uaix.mock.exchange.result.v1",
"generated_at": "2026-04-26T20:12:12+00:00",
"route_url": "http://uiax.org/wp-json/uaix/v1/mock-exchange",
"scenario": "accepted-task",
"http_status": 202,
"summary": "The reference surface accepted the request and returned a conforming async handoff using `uai.intent.response.v1`.",
"request": {
"message": {
"uai_version": "1.0",
"profile": "uai.intent.request.v1",
"message_id": "msg-2026-04-22-0001",
"source": {
"type": "agent",
"id": "agent.alpha",
"label": "Agent Alpha",
"uri": "https://agents.alpha.example/runtime",
"did": "did:web:agents.alpha.example",
"role": "requesting-agent",
"implementation": "alpha-runtime-2.4.1"
},
"target": {
"type": "service",
"id": "uaix.gateway",
"label": "UAIX 闸门way",
"uri": "https://uaix.org/wp-json/uaix/v1/discovery",
"did": "did:web:uaix.org",
"role": "public-record-gateway",
"implementation": "uaix-core-0.4.0"
},
"conversation": {
"conversation_id": "conv-2026-04-22-uaix-001",
"turn_id": "turn-001",
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01",
"sequence": 1
},
"delivery": {
"mode": "async",
"priority": "interactive",
"expires_at": "2026-04-22T16:05:00Z",
"reply_requested": true,
"ack_required": true
},
"trust": {
"channel": "credentialed",
"auth_scheme": "did+vc",
"principal": "did:web:agents.alpha.example",
"credential_ref": "https://agents.alpha.example/credentials/uai-interop.json",
"signature_ref": "https://agents.alpha.example/signatures/msg-2026-04-22-0001.jws",
"replay_window_id": "rw-2026-04-22-0001"
},
"body": {
"intent": "resolve-profile",
"subject": "uai.task.status.v1",
"requested_profile": "uai.task.status.v1",
"parameters": {
"include_schema": true,
"include_example": true,
"include_field_registry": true
},
"constraints": [
"public-record-only",
"trace-linked",
"validator-ready"
],
"response_profile": "uai.intent.response.v1"
},
"provenance": {
"trace_id": "trace-7f3a2d",
"parent_trace_id": "trace-root-uaix-2026",
"issued_at": "2026-04-22T16:00:00Z",
"log_ref": "urn:uaix:log:2026:0001",
"agent_id": "agent.alpha",
"model_id": "model.alpha.reasoner-2",
"confidence": 0.98,
"lineage": [
{
"stage": "request-composition",
"actor_id": "agent.alpha",
"model_id": "model.alpha.reasoner-2",
"note": "Requested the async task-status profile and matching field registry."
}
]
},
"integrity": {
"version": 2,
"algorithm": "sha256",
"canonicalization": "jcs",
"checksum": "sha256:dd8a9d16c9226cc9d1f4888a4d2bbcbf06b5b4b8"
},
"extensions": [
{
"namespace": "urn:uaix:ext:delivery",
"purpose": "Explicit async request handling and expiry semantics.",
"critical": false
}
]
},
"validation": {
"valid": true,
"checked_at": "2026-04-26T20:12:12+00:00",
"profile": "uai.intent.request.v1",
"current_release": "UAI-1",
"uai_version": "1.0",
"schema_route_url": "http://uiax.org/wp-json/uaix/v1/schemas/uai.intent.request.v1",
"registry_route_url": "http://uiax.org/wp-json/uaix/v1/registry/uai.intent.request.v1",
"issue_count": 0,
"error_count": 0,
"warning_count": 0,
"errors": [],
"warnings": [],
"status": "pass",
"normalization": {
"mode": "keyed-json",
"status": "current",
"supported": true,
"input_shape": "json-object",
"normalized": false,
"registry_release": "UAI-1",
"registry_release_date": "2026-04-22",
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"canonicalization": "jcs-compatible-sorted-json",
"canonical_hash": "sha256:ea001827f8204b5282544b0306c596aca64923bd76cc7ed77f252c2b2084062b",
"byte_count": 2112
},
"conformance_record": {
"uai_version": "1.0",
"profile": "uai.conformance.result.v1",
"message_id": "msg-20260426T201212Z-c61fc93cb5a3",
"source": {
"type": "service",
"id": "uaix.validator",
"label": "UAIX 验è¯å™¨",
"uri": "http://uiax.org/en-us/tools/validator/",
"did": "did:web:uaix.org",
"role": "conformance-checker",
"implementation": "uaix-core-0.9.11"
},
"target": {
"type": "message",
"id": "msg-2026-04-22-0001",
"label": "uai.intent.request.v1",
"uri": "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
"did": "did:web:uaix.org",
"role": "checked-record",
"implementation": "uai.intent.request.v1"
},
"conversation": {
"conversation_id": "conv-2026-04-22-uaix-001",
"turn_id": "turn-validator-c61fc93cb5a3",
"parent_message_id": "msg-2026-04-22-0001",
"sequence": 2,
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
},
"delivery": {
"mode": "sync",
"priority": "routine",
"expires_at": "2026-05-03T20:12:12+00:00",
"reply_requested": false,
"ack_required": false
},
"trust": {
"channel": "signed-envelope",
"auth_scheme": "validator-record",
"principal": "did:web:uaix.org",
"credential_ref": "http://uiax.org/.well-known/uai.json",
"signature_ref": "http://uiax.org/en-us/tools/validator/",
"replay_window_id": "rw-conformance-20260426-c61fc93cb5a3"
},
"body": {
"status": "pass",
"checked_profile": "uai.intent.request.v1",
"issues": [],
"summary": {
"error_count": 0,
"warning_count": 0,
"checked_at": "2026-04-26T20:12:12+00:00"
},
"artifacts": {
"catalog_url": "http://uiax.org/wp-json/uaix/v1/catalog",
"schema_url": "http://uiax.org/wp-json/uaix/v1/schemas/uai.intent.request.v1",
"registry_url": "http://uiax.org/wp-json/uaix/v1/registry/uai.intent.request.v1",
"example_url": "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1",
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"transport_bindings_url": "http://uiax.org/wp-json/uaix/v1/transport-bindings",
"trust_channels_url": "http://uiax.org/wp-json/uaix/v1/trust-channels",
"conformance_levels_url": "http://uiax.org/wp-json/uaix/v1/conformance-levels",
"error_registry_url": "http://uiax.org/wp-json/uaix/v1/error-registry",
"validate_url": "http://uiax.org/wp-json/uaix/v1/validate"
},
"target_message_ref": "msg-2026-04-22-0001"
},
"provenance": {
"trace_id": "trace-7f3a2d",
"issued_at": "2026-04-26T20:12:12+00:00",
"log_ref": "urn:uaix:log:2026:0001",
"agent_id": "uaix.validator",
"model_id": "model.uaix.validator-1",
"confidence": 1,
"lineage": [
{
"stage": "conformance-export",
"actor_id": "uaix.validator",
"model_id": "model.uaix.validator-1",
"note": "ç”Ÿæˆæ—¶é—´ a validator-backed evidence record for the checked message using keyed-json normalization."
}
],
"parent_trace_id": "trace-7f3a2d"
},
"integrity": {
"version": 2,
"algorithm": "sha256",
"canonicalization": "jcs",
"checksum": "sha256:fb31e0116d019906346c03551112ae98ff39c9dc874b4f199629296b3888d9e3"
},
"extensions": [
{
"namespace": "urn:uaix:ext:evidence",
"purpose": "Links conformance output to the exact 公开制品 used during validation.",
"critical": false
}
]
},
"download_filename": "msg-20260426T201212Z-c61fc93cb5a3.json"
}
},
"response_profile": "uai.intent.response.v1",
"response_message": {
"uai_version": "1.0",
"profile": "uai.intent.response.v1",
"message_id": "msg-mock-accepted-529a0c03c1bb",
"source": {
"type": "service",
"id": "uaix.mock.exchange",
"label": "UAIX 模拟交æ¢",
"uri": "http://uiax.org/wp-json/uaix/v1/mock-exchange",
"did": "did:web:uaix.org",
"role": "reference-server",
"implementation": "uaix-core-0.9.11"
},
"target": {
"type": "agent",
"id": "agent.alpha",
"label": "Agent Alpha",
"uri": "https://agents.alpha.example/runtime",
"did": "did:web:agents.alpha.example",
"role": "requesting-agent",
"implementation": "alpha-runtime-2.4.1"
},
"conversation": {
"conversation_id": "conv-2026-04-22-uaix-001",
"turn_id": "turn-mock-529a0c03c1bb",
"parent_message_id": "msg-2026-04-22-0001",
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-55e4155501e108df-01",
"sequence": 2
},
"delivery": {
"mode": "async",
"priority": "interactive",
"expires_at": "2026-04-22T16:05:00+00:00",
"reply_requested": false,
"ack_required": true,
"task_ref": "task-mock-529a0c03c1bb"
},
"trust": {
"channel": "signed-envelope",
"auth_scheme": "jws",
"principal": "did:web:uaix.org",
"credential_ref": "http://uiax.org/.well-known/uai.json",
"signature_ref": "http://uiax.org/wp-json/uaix/v1/mock-exchange#signature-529a0c03c1bb",
"replay_window_id": "rw-mock-529a0c03c1bb"
},
"body": {
"status": "accepted",
"subject": "uai.task.status.v1",
"request_message_id": "msg-2026-04-22-0001",
"result": {
"task_id": "task-mock-529a0c03c1bb",
"status_profile": "uai.task.status.v1",
"status_example_url": "http://uiax.org/wp-json/uaix/v1/examples/uai.task.status.v1",
"response_profile": "uai.intent.response.v1",
"follow_up_scenarios": [
"completed-response",
"typed-error"
],
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"mock_exchange_url": "http://uiax.org/wp-json/uaix/v1/mock-exchange"
},
"notices": [
"accepted-task-started",
"use-task-status-example-for-shape-checks",
"reference-surface-response"
],
"task_ref": "task-mock-529a0c03c1bb"
},
"provenance": {
"trace_id": "trace-7f3a2d",
"issued_at": "2026-04-22T16:00:03+00:00",
"log_ref": "urn:uaix:log:mock:20260426:529a0c03c1bb",
"agent_id": "uaix.mock.exchange",
"model_id": "model.uaix.mock.exchange-1",
"confidence": 1,
"lineage": [
{
"stage": "mock-acceptance",
"actor_id": "uaix.mock.exchange",
"model_id": "model.uaix.mock.exchange-1",
"note": "Accepted the request and published a deterministic async handoff from the UAIX mock exchange surface."
}
],
"parent_trace_id": "trace-7f3a2d"
},
"integrity": {
"version": 2,
"algorithm": "sha256",
"canonicalization": "jcs",
"checksum": "sha256:240f1ecaa3662482c7d9a62199db94ce09f206d80a1e657a3e039aad6328e066"
},
"extensions": [
{
"namespace": "urn:uaix:ext:mock-exchange",
"purpose": "Marks this envelope as a deterministic response from the UAIX live reference surface for scenario `accepted-task`.",
"critical": false
}
]
},
"response_validation": {
"valid": true,
"checked_at": "2026-04-26T20:12:12+00:00",
"profile": "uai.intent.response.v1",
"current_release": "UAI-1",
"uai_version": "1.0",
"schema_route_url": "http://uiax.org/wp-json/uaix/v1/schemas/uai.intent.response.v1",
"registry_route_url": "http://uiax.org/wp-json/uaix/v1/registry/uai.intent.response.v1",
"issue_count": 0,
"error_count": 0,
"warning_count": 0,
"errors": [],
"warnings": [],
"status": "pass",
"normalization": {
"mode": "keyed-json",
"status": "current",
"supported": true,
"input_shape": "json-object",
"normalized": false,
"registry_release": "UAI-1",
"registry_release_date": "2026-04-22",
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"canonicalization": "jcs-compatible-sorted-json",
"canonical_hash": "sha256:90acf6cfc9e1527bf23eddde96c80128d9153a8c79af30055eb19fdaf89c2b62",
"byte_count": 2702
},
"conformance_record": {
"uai_version": "1.0",
"profile": "uai.conformance.result.v1",
"message_id": "msg-20260426T201212Z-94536e29bf33",
"source": {
"type": "service",
"id": "uaix.validator",
"label": "UAIX 验è¯å™¨",
"uri": "http://uiax.org/en-us/tools/validator/",
"did": "did:web:uaix.org",
"role": "conformance-checker",
"implementation": "uaix-core-0.9.11"
},
"target": {
"type": "message",
"id": "msg-mock-accepted-529a0c03c1bb",
"label": "uai.intent.response.v1",
"uri": "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.response.v1",
"did": "did:web:uaix.org",
"role": "checked-record",
"implementation": "uai.intent.response.v1"
},
"conversation": {
"conversation_id": "conv-2026-04-22-uaix-001",
"turn_id": "turn-validator-94536e29bf33",
"parent_message_id": "msg-mock-accepted-529a0c03c1bb",
"sequence": 3,
"traceparent": "00-4bf92f3577b34da6a3ce929d0e0e4736-55e4155501e108df-01"
},
"delivery": {
"mode": "sync",
"priority": "routine",
"expires_at": "2026-05-03T20:12:12+00:00",
"reply_requested": false,
"ack_required": false
},
"trust": {
"channel": "signed-envelope",
"auth_scheme": "validator-record",
"principal": "did:web:uaix.org",
"credential_ref": "http://uiax.org/.well-known/uai.json",
"signature_ref": "http://uiax.org/en-us/tools/validator/",
"replay_window_id": "rw-conformance-20260426-94536e29bf33"
},
"body": {
"status": "pass",
"checked_profile": "uai.intent.response.v1",
"issues": [],
"summary": {
"error_count": 0,
"warning_count": 0,
"checked_at": "2026-04-26T20:12:12+00:00"
},
"artifacts": {
"catalog_url": "http://uiax.org/wp-json/uaix/v1/catalog",
"schema_url": "http://uiax.org/wp-json/uaix/v1/schemas/uai.intent.response.v1",
"registry_url": "http://uiax.org/wp-json/uaix/v1/registry/uai.intent.response.v1",
"example_url": "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.response.v1",
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"transport_bindings_url": "http://uiax.org/wp-json/uaix/v1/transport-bindings",
"trust_channels_url": "http://uiax.org/wp-json/uaix/v1/trust-channels",
"conformance_levels_url": "http://uiax.org/wp-json/uaix/v1/conformance-levels",
"error_registry_url": "http://uiax.org/wp-json/uaix/v1/error-registry",
"validate_url": "http://uiax.org/wp-json/uaix/v1/validate"
},
"target_message_ref": "msg-mock-accepted-529a0c03c1bb"
},
"provenance": {
"trace_id": "trace-7f3a2d",
"issued_at": "2026-04-26T20:12:12+00:00",
"log_ref": "urn:uaix:log:mock:20260426:529a0c03c1bb",
"agent_id": "uaix.validator",
"model_id": "model.uaix.validator-1",
"confidence": 1,
"lineage": [
{
"stage": "conformance-export",
"actor_id": "uaix.validator",
"model_id": "model.uaix.validator-1",
"note": "ç”Ÿæˆæ—¶é—´ a validator-backed evidence record for the checked message using keyed-json normalization."
}
],
"parent_trace_id": "trace-7f3a2d"
},
"integrity": {
"version": 2,
"algorithm": "sha256",
"canonicalization": "jcs",
"checksum": "sha256:fdc11523fdef9866b9e3860282494f2b7c283c8b1bc651f99966f791a5c1c021"
},
"extensions": [
{
"namespace": "urn:uaix:ext:evidence",
"purpose": "Links conformance output to the exact 公开制品 used during validation.",
"critical": false
}
]
},
"download_filename": "msg-20260426T201212Z-94536e29bf33.json"
},
"links": {
"catalog_url": "http://uiax.org/wp-json/uaix/v1/catalog",
"validate_url": "http://uiax.org/wp-json/uaix/v1/validate",
"field_registry_url": "http://uiax.org/wp-json/uaix/v1/field-registry",
"response_example_url": "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.response.v1",
"task_status_example_url": "http://uiax.org/wp-json/uaix/v1/examples/uai.task.status.v1"
}
}
此处说明当前公开记录、证据路径和支持边界。
路由级起æ¥è¯·æ±‚
å½“ä½ å¸Œæœ›ç”¨ curlã€PowerShellã€Python 或 TypeScript 直接请求åŒä¸€ä»½æ•°æ®åŒ…时,请使用下é¢çš„公开示例。
起步片段使用实时公开路由,而不是私有 SDK 或未发布的辅助层。
curl -sS "http://uiax.org/wp-json/uaix/v1/adoption-kit" -o uai-adoption-kit.json
curl -sS "http://uiax.org/wp-json/uaix/v1/catalog"
curl -sS "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1" -o example-record.json
curl -sS -X POST "http://uiax.org/wp-json/uaix/v1/validate" \
-H "Content-Type: application/json" \
-d @validate-request.json
curl -sS -X POST "http://uiax.org/wp-json/uaix/v1/mock-exchange" \
-H "Content-Type: application/json" \
-d @mock-exchange-request.json
Invoke-RestMethod -Uri "http://uiax.org/wp-json/uaix/v1/adoption-kit" | ConvertTo-Json -Depth 20 | Set-Content .\uai-adoption-kit.json
Invoke-RestMethod -Uri "http://uiax.org/wp-json/uaix/v1/catalog"
Invoke-RestMethod -Uri "http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1" | ConvertTo-Json -Depth 20 | Set-Content .\example-record.json
$message = (Get-Content -Raw .\example-record.json | ConvertFrom-Json).message
$body = @{ message = $message; format = "result" } | ConvertTo-Json -Depth 20
Invoke-RestMethod -Method Post -Uri "http://uiax.org/wp-json/uaix/v1/validate" -ContentType "application/json" -Body $body
$message = (Get-Content -Raw .\example-record.json | ConvertFrom-Json).message
$body = @{ scenario = "accepted-task"; format = "exchange"; message = $message } | ConvertTo-Json -Depth 20
Invoke-RestMethod -Method Post -Uri "http://uiax.org/wp-json/uaix/v1/mock-exchange" -ContentType "application/json" -Body $body
import json, urllib.request
kit = json.load(urllib.request.urlopen("http://uiax.org/wp-json/uaix/v1/adoption-kit"))
import json, urllib.request
catalog = json.load(urllib.request.urlopen("http://uiax.org/wp-json/uaix/v1/catalog"))
example_record = json.load(urllib.request.urlopen("http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1"))
message = example_record.get("message", example_record)
payload = json.dumps({"message": message, "format": "result"}).encode("utf-8")
request = urllib.request.Request("http://uiax.org/wp-json/uaix/v1/validate", data=payload, headers={"Content-Type": "application/json"}, method="POST")
result = json.load(urllib.request.urlopen(request))
payload = json.dumps({"scenario": "accepted-task", "format": "exchange", "message": message}).encode("utf-8")
request = urllib.request.Request("http://uiax.org/wp-json/uaix/v1/mock-exchange", data=payload, headers={"Content-Type": "application/json"}, method="POST")
exchange = json.load(urllib.request.urlopen(request))
const kit = await fetch("http://uiax.org/wp-json/uaix/v1/adoption-kit").then((response) => response.json());
const catalog = await fetch("http://uiax.org/wp-json/uaix/v1/catalog").then((response) => response.json());
const exampleRecord = await fetch("http://uiax.org/wp-json/uaix/v1/examples/uai.intent.request.v1").then((response) => response.json());
const message = exampleRecord.message ?? exampleRecord;
const result = await fetch("http://uiax.org/wp-json/uaix/v1/validate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ message, format: "result" }),
}).then((response) => response.json());
const exchange = await fetch("http://uiax.org/wp-json/uaix/v1/mock-exchange", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ scenario: "accepted-task", format: "exchange", message }),
}).then((response) => response.json());
下一æ¥
å½“é¦–æ¬¡è¯æ˜Žè¿è¡Œéœ€è¦è½åˆ°ä¸€ä¸ªå…·åå‘å¸ƒè½¨é“æ—¶ï¼Œç»§ç»å‰å¾€ 实施轨é“ï¼›å½“ä½ éœ€è¦äººå·¥å·¥ä½œå°æµç¨‹æ—¶ï¼Œè¿”回 验è¯å™¨ï¼›å½“ä½ éœ€è¦æŽ¥å…¥å¥—ä»¶èƒŒåŽçš„æ›´å¹¿æœºå™¨å¥‘约时,转到 API å‚考。