{"id":28311,"date":"2025-03-12T11:07:50","date_gmt":"2025-03-12T03:07:50","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=28311"},"modified":"2025-03-12T11:07:50","modified_gmt":"2025-03-12T03:07:50","slug":"openai-agents-sdk","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/openai-agents-sdk\/","title":{"rendered":"OpenAI Agents SDK\uff1a\u642d\u5efa\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u5de5\u4f5c\u6d41\u7684Python\u6846\u67b6"},"content":{"rendered":"<p>OpenAI Agents SDK \u662f OpenAI \u63a8\u51fa\u7684\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u5f00\u53d1\u5de5\u5177\uff0c\u4e13\u4e3a\u6784\u5efa\u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41\u8bbe\u8ba1\u3002\u5b83\u57fa\u4e8e Python\uff0c\u7b80\u5355\u6613\u4e0a\u624b\uff0c\u652f\u6301\u5f00\u53d1\u8005\u901a\u8fc7\u914d\u7f6e\u667a\u80fd\u4f53\uff08Agents\uff09\u3001\u4efb\u52a1\u5207\u6362\uff08Handoffs\uff09\u3001\u5b89\u5168\u9a8c\u8bc1\uff08Guardrails\uff09\u548c\u8fd0\u884c\u8ffd\u8e2a\uff08Tracing\uff09\u6765\u5b9e\u73b0\u590d\u6742\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u6bd4\u5982\uff0c\u4f60\u53ef\u4ee5\u7528\u5b83\u6253\u9020\u4e00\u4e2a\u80fd\u5199\u4ee3\u7801\u7684\u52a9\u624b\uff0c\u6216\u5904\u7406\u591a\u8bed\u8a00\u4ea4\u4e92\u7684\u667a\u80fd\u7cfb\u7edf\u3002\u5b83\u7684\u4eae\u70b9\u5728\u4e8e\u517c\u5bb9\u6240\u6709\u652f\u6301 OpenAI Chat Completions API \u683c\u5f0f\u7684\u6a21\u578b\u63d0\u4f9b\u5546\uff0c\u7075\u6d3b\u6027\u5f88\u5f3a\u3002\u5b98\u65b9\u63d0\u4f9b\u4e86\u8be6\u7ec6\u6587\u6863\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u9002\u5408\u5404\u79cd\u6c34\u5e73\u7684\u5f00\u53d1\u8005\u5feb\u901f\u5165\u95e8\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-28312\" title=\"OpenAI Agents SDK\uff1a\u642d\u5efa\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u5de5\u4f5c\u6d41\u7684Python\u6846\u67b6-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95.jpg\" alt=\"OpenAI Agents SDK\uff1a\u642d\u5efa\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u5de5\u4f5c\u6d41\u7684Python\u6846\u67b6-1\" width=\"2664\" height=\"1606\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95.jpg 2664w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95-768x463.jpg 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95-1536x926.jpg 1536w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95-2048x1235.jpg 2048w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/03\/3a8892a8f34ad95-18x12.jpg 18w\" sizes=\"auto, (max-width: 2664px) 100vw, 2664px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u667a\u80fd\u4f53\u5b9a\u5236<\/strong>\uff1a\u4e3a\u8bed\u8a00\u6a21\u578b\u8bbe\u7f6e\u6307\u4ee4\u3001\u5de5\u5177\u548c\u9650\u5236\uff0c\u521b\u5efa\u4e13\u5c5e\u667a\u80fd\u52a9\u624b\u3002<\/li>\n<li><strong>\u4efb\u52a1\u5207\u6362<\/strong>\uff1a\u652f\u6301\u667a\u80fd\u4f53\u95f4\u65e0\u7f1d\u5207\u6362\u4efb\u52a1\uff0c\u6bd4\u5982\u4ece\u82f1\u8bed\u52a9\u624b\u8f6c\u5230\u897f\u73ed\u7259\u8bed\u52a9\u624b\u3002<\/li>\n<li><strong>\u5b89\u5168\u9a8c\u8bc1<\/strong>\uff1a\u5185\u7f6e\u8f93\u5165\u548c\u8f93\u51fa\u68c0\u67e5\uff0c\u786e\u4fdd\u7ed3\u679c\u5b89\u5168\u53ef\u9760\u3002<\/li>\n<li><strong>\u8fd0\u884c\u8ffd\u8e2a<\/strong>\uff1a\u81ea\u52a8\u8bb0\u5f55\u667a\u80fd\u4f53\u8fd0\u884c\u8fc7\u7a0b\uff0c\u65b9\u4fbf\u8c03\u8bd5\u548c\u4f18\u5316\u3002<\/li>\n<li><strong>\u5de5\u5177\u6269\u5c55<\/strong>\uff1a\u5141\u8bb8\u6dfb\u52a0\u81ea\u5b9a\u4e49\u5de5\u5177\uff0c\u4f8b\u5982\u67e5\u8be2\u5929\u6c14\u6216\u5904\u7406\u7279\u5b9a\u4efb\u52a1\u3002<\/li>\n<li><strong>\u6a21\u578b\u517c\u5bb9<\/strong>\uff1a\u652f\u6301\u591a\u79cd\u6a21\u578b\u63d0\u4f9b\u5546\uff0c\u53ea\u9700\u7b26\u5408 OpenAI API \u683c\u5f0f\u5373\u53ef\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<p>\u8981\u4f7f\u7528 OpenAI Agents SDK\uff0c\u9996\u5148\u9700\u8981\u642d\u5efa Python \u73af\u5883\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><br \/>\n\u5728\u7ec8\u7aef\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u521b\u5efa\u4e00\u4e2a\u72ec\u7acb\u7684 Python \u73af\u5883\uff0c\u907f\u514d\u4e0e\u5176\u4ed6\u9879\u76ee\u51b2\u7a81\uff1a<\/li>\n<\/ol>\n<pre><code>python -m venv env\r\n<\/code><\/pre>\n<p>\u7136\u540e\u6fc0\u6d3b\u73af\u5883\uff1a<\/p>\n<ul>\n<li>Windows \u7cfb\u7edf\uff1a<code>env\\Scripts\\activate<\/code><\/li>\n<li>Mac\/Linux \u7cfb\u7edf\uff1a<code>source env\/bin\/activate<\/code><\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u5b89\u88c5 SDK<\/strong><br \/>\n\u6fc0\u6d3b\u73af\u5883\u540e\uff0c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 SDK\uff1a<\/li>\n<\/ol>\n<pre><code>pip install openai-agents\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>\u914d\u7f6e API \u5bc6\u94a5<\/strong><br \/>\n\u5728\u8fd0\u884c\u4ee3\u7801\u524d\uff0c\u9700\u8981\u8bbe\u7f6e OpenAI API \u5bc6\u94a5\u3002\u5728\u7ec8\u7aef\u8f93\u5165\uff1a<\/li>\n<\/ol>\n<pre><code>export OPENAI_API_KEY='\u4f60\u7684\u5bc6\u94a5'\r\n<\/code><\/pre>\n<p>\u6216\u8005\u5728\u4ee3\u7801\u4e2d\u901a\u8fc7\u73af\u5883\u53d8\u91cf\u52a0\u8f7d\u3002\u6ce8\u610f\u4fdd\u62a4\u5bc6\u94a5\u5b89\u5168\u3002<\/p>\n<p>\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u4f7f\u7528\u8fd9\u4e2a\u5de5\u5177\u4e86\u3002<\/p>\n<h3>\u5982\u4f55\u4f7f\u7528<\/h3>\n<p>OpenAI Agents SDK \u7684\u6838\u5fc3\u662f\u00a0<code>Agent<\/code>\u00a0\u548c\u00a0<code>Runner<\/code>\u00a0\u7c7b\u3002<code>Agent<\/code>\u00a0\u7528\u4e8e\u5b9a\u4e49\u667a\u80fd\u4f53\u7684\u884c\u4e3a\uff0c<code>Runner<\/code>\u00a0\u8d1f\u8d23\u6267\u884c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002\u4ee5\u4e0b\u662f\u4e3b\u8981\u529f\u80fd\u7684\u8be6\u7ec6\u64cd\u4f5c\u8bf4\u660e\u3002<\/p>\n<h4>1. \u521b\u5efa\u57fa\u7840\u667a\u80fd\u52a9\u624b<\/h4>\n<p>\u60f3\u5feb\u901f\u4e0a\u624b\uff1f\u8bd5\u8bd5\u8fd9\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff0c\u8ba9\u667a\u80fd\u4f53\u5199\u4e00\u9996\u5173\u4e8e\u7f16\u7a0b\u7684\u4ff3\u53e5\uff1a<\/p>\n<pre><code>from agents import Agent, Runner\r\nagent = Agent(name=\"Assistant\", instructions=\"You are a helpful assistant\")\r\nresult = Runner.run_sync(agent, \"Write a haiku about recursion in programming.\")\r\nprint(result.final_output)\r\n<\/code><\/pre>\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<ul>\n<li>\u521b\u5efa\u4e00\u4e2a\u667a\u80fd\u4f53\uff0c\u8bbe\u7f6e\u540d\u79f0\u548c\u6307\u4ee4\u3002<\/li>\n<li>\u7528\u00a0<code>Runner.run_sync<\/code>\u00a0\u540c\u6b65\u8fd0\u884c\uff0c\u8f93\u5165\u4efb\u52a1\u8981\u6c42\u3002<\/li>\n<li>\u8fd0\u884c\u540e\u4f1a\u8f93\u51fa\u7c7b\u4f3c\u7ed3\u679c\uff1a\u201c\u4ee3\u7801\u4e2d\u6709\u4ee3\u7801\uff0c\u51fd\u6570\u8c03\u7528\u81ea\u5df1\uff0c\u65e0\u9650\u5faa\u73af\u821e\u3002\u201d<\/li>\n<\/ul>\n<h4>2. \u5b9e\u73b0\u4efb\u52a1\u5207\u6362<\/h4>\n<p>\u4efb\u52a1\u5207\u6362\u662f SDK \u7684\u7279\u8272\u529f\u80fd\uff0c\u53ef\u4ee5\u8ba9\u591a\u4e2a\u667a\u80fd\u4f53\u534f\u4f5c\u3002\u6bd4\u5982\u5904\u7406\u591a\u8bed\u8a00\u8bf7\u6c42\uff1a<\/p>\n<pre><code>from agents import Agent, Runner\r\nimport asyncio\r\nspanish_agent = Agent(name=\"Spanish agent\", instructions=\"You only <a href=\"https:\/\/www.kdjingpai.com\/en\/speak\/\">speak<\/a> Spanish.\")\r\nenglish_agent = Agent(name=\"English agent\", instructions=\"You only speak English.\")\r\ntriage_agent = Agent(\r\nname=\"Triage agent\",\r\ninstructions=\"Handoff to the appropriate agent based on the language of the request.\",\r\nhandoffs=[spanish_agent, english_agent],\r\n)\r\nasync def main():\r\nresult = await Runner.run(triage_agent, input=\"Hola, \u00bfc\u00f3mo est\u00e1s?\")\r\nprint(result.final_output)\r\nif __name__ == \"__main__\":\r\nasyncio.run(main())\r\n<\/code><\/pre>\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5b9a\u4e49\u591a\u4e2a\u667a\u80fd\u4f53\uff0c\u6bcf\u4e2a\u6709\u7279\u5b9a\u6307\u4ee4\u3002<\/li>\n<li>\u521b\u5efa\u4e3b\u667a\u80fd\u4f53\uff08<code>triage_agent<\/code>\uff09\uff0c\u5e76\u6307\u5b9a\u53ef\u5207\u6362\u7684\u667a\u80fd\u4f53\u3002<\/li>\n<li>\u7528\u00a0<code>Runner.run<\/code>\u00a0\u5f02\u6b65\u8fd0\u884c\uff0c\u8f93\u5165\u897f\u73ed\u7259\u8bed\u95ee\u9898\u3002<\/li>\n<li>\u4e3b\u667a\u80fd\u4f53\u4f1a\u6839\u636e\u8bed\u8a00\u5207\u6362\u5230\u00a0<code>spanish_agent<\/code>\uff0c\u8fd4\u56de\u7c7b\u4f3c\uff1a\u201c\u00a1Hola! Estoy bien, gracias por preguntar. \u00bfY t\u00fa, c\u00f3mo est\u00e1s?\u201d<\/li>\n<\/ul>\n<h4>3. \u6dfb\u52a0\u81ea\u5b9a\u4e49\u5de5\u5177<\/h4>\n<p>\u4f60\u53ef\u4ee5\u7528\u00a0<code>function_tool<\/code>\u00a0\u5b9a\u4e49\u5de5\u5177\uff0c\u8ba9\u667a\u80fd\u4f53\u8c03\u7528\u5916\u90e8\u529f\u80fd\u3002\u6bd4\u5982\u67e5\u8be2\u5929\u6c14\uff1a<\/p>\n<pre><code>from agents import Agent, Runner, function_tool\r\n@function_tool\r\ndef get_weather(city: str) -&gt; str:\r\nreturn f\"The weather in {city} is sunny.\"\r\nagent = Agent(\r\nname=\"Weather agent\",\r\ninstructions=\"You are a helpful agent.\",\r\ntools=[get_weather],\r\n)\r\nasync def main():\r\nresult = await Runner.run(agent, input=\"What's the weather in Tokyo?\")\r\nprint(result.final_output)\r\nif __name__ == \"__main__\":\r\nasyncio.run(main())\r\n<\/code><\/pre>\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u00a0<code>@function_tool<\/code>\u00a0\u88c5\u9970\u3002<\/li>\n<li>\u5c06\u5de5\u5177\u52a0\u5165\u667a\u80fd\u4f53\u7684\u00a0<code>tools<\/code>\u00a0\u53c2\u6570\u3002<\/li>\n<li>\u8fd0\u884c\u540e\uff0c\u667a\u80fd\u4f53\u4f1a\u8c03\u7528\u5de5\u5177\uff0c\u8fd4\u56de\uff1a\u201cThe weather in Tokyo is sunny.\u201d<\/li>\n<\/ul>\n<h4>4. \u4f7f\u7528\u8fd0\u884c\u8ffd\u8e2a<\/h4>\n<p>SDK \u5185\u7f6e\u8ffd\u8e2a\u529f\u80fd\uff0c\u6bcf\u6b21\u8fd0\u884c\u90fd\u4f1a\u8bb0\u5f55\u667a\u80fd\u4f53\u7684\u64cd\u4f5c\u7ec6\u8282\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u00a0<code>result<\/code>\u00a0\u5bf9\u8c61\u67e5\u770b\u8fd0\u884c\u8fc7\u7a0b\uff0c\u6216\u8005\u96c6\u6210\u5916\u90e8\u5de5\u5177\uff08\u5982 Logfire\uff09\u5206\u6790\u3002\u9ed8\u8ba4\u65e0\u9700\u989d\u5916\u8bbe\u7f6e\u5373\u53ef\u4f7f\u7528\u3002<\/p>\n<h4>5. \u8bbe\u7f6e\u5b89\u5168\u9a8c\u8bc1<\/h4>\n<p>\u5b89\u5168\u9a8c\u8bc1\uff08Guardrails\uff09\u53ef\u4ee5\u68c0\u67e5\u8f93\u5165\u548c\u8f93\u51fa\u3002\u4f8b\u5982\uff0c\u9632\u6b62\u7528\u6237\u8ba9\u667a\u80fd\u4f53\u505a\u6570\u5b66\u4f5c\u4e1a\uff1a<\/p>\n<pre><code>from agents import Agent, Runner, input_guardrail\r\nfrom pydantic import BaseModel\r\nclass MathCheck(BaseModel):\r\nis_math_homework: bool\r\nreasoning: str\r\nguardrail_agent = Agent(\r\nname=\"Guardrail check\",\r\ninstructions=\"Check if the user is asking you to do their math homework.\",\r\noutput_type=MathCheck,\r\n)\r\n@input_guardrail\r\nasync def math_guardrail(ctx, agent, input):\r\nresult = await Runner.run(guardrail_agent, input)\r\nreturn GuardrailFunctionOutput(\r\noutput_info=result.final_output,\r\ntripwire_triggered=result.final_output.is_math_homework,\r\n)\r\nagent = Agent(\r\nname=\"Support agent\",\r\ninstructions=\"Help customers with their questions.\",\r\ninput_guardrails=[math_guardrail],\r\n)\r\nasync def main():\r\ntry:\r\nawait Runner.run(agent, \"Can you solve 2x + 3 = 11?\")\r\nexcept Exception as e:\r\nprint(\"Guardrail stopped the request\")\r\n<\/code><\/pre>\n<p><strong>\u64cd\u4f5c\u6b65\u9aa4<\/strong>\uff1a<\/p>\n<ul>\n<li>\u5b9a\u4e49\u4e00\u4e2a\u5b88\u536b\u667a\u80fd\u4f53\uff0c\u68c0\u67e5\u8f93\u5165\u3002<\/li>\n<li>\u7528\u00a0<code>@input_guardrail<\/code>\u00a0\u521b\u5efa\u5b88\u536b\u51fd\u6570\u3002<\/li>\n<li>\u5c06\u5b88\u536b\u52a0\u5165\u4e3b\u667a\u80fd\u4f53\u3002\u5982\u679c\u8f93\u5165\u6d89\u53ca\u6570\u5b66\u4f5c\u4e1a\uff0c\u8fd0\u884c\u4f1a\u4e2d\u65ad\u3002<\/li>\n<\/ul>\n<h3>\u64cd\u4f5c\u6d41\u7a0b\u8be6\u89e3<\/h3>\n<ul>\n<li><strong>\u667a\u80fd\u4f53\u5faa\u73af<\/strong>\uff1a\u8c03\u7528\u00a0<code>Runner.run()<\/code>\u00a0\u65f6\uff0cSDK \u4f1a\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a\n<ol>\n<li>\u8c03\u7528\u8bed\u8a00\u6a21\u578b\uff0c\u751f\u6210\u54cd\u5e94\u3002<\/li>\n<li>\u68c0\u67e5\u662f\u5426\u6709\u5de5\u5177\u8c03\u7528\u6216\u4efb\u52a1\u5207\u6362\u3002<\/li>\n<li>\u6267\u884c\u5de5\u5177\u8c03\u7528\u5e76\u8bb0\u5f55\u7ed3\u679c\u3002<\/li>\n<li>\u5982\u679c\u6709\u4efb\u52a1\u5207\u6362\uff0c\u8df3\u8f6c\u5230\u65b0\u667a\u80fd\u4f53\u3002<\/li>\n<li>\u5faa\u73af\u76f4\u5230\u751f\u6210\u6700\u7ec8\u8f93\u51fa\uff0c\u6216\u8fbe\u5230\u00a0<code>max_turns<\/code>\u00a0\u4e0a\u9650\u3002<\/li>\n<\/ol>\n<\/li>\n<li><strong>\u8f93\u51fa\u7c7b\u578b<\/strong>\uff1a\u5982\u679c\u8bbe\u7f6e\u4e86\u00a0<code>output_type<\/code>\uff0c\u667a\u80fd\u4f53\u4f1a\u751f\u6210\u6307\u5b9a\u7c7b\u578b\u7684\u7ed3\u6784\u5316\u8f93\u51fa\uff1b\u5426\u5219\uff0c\u7b2c\u4e00\u6b21\u65e0\u5de5\u5177\u8c03\u7528\u6216\u5207\u6362\u7684\u54cd\u5e94\u5373\u4e3a\u6700\u7ec8\u8f93\u51fa\u3002<\/li>\n<\/ul>\n<h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<ul>\n<li><strong>\u8c03\u8bd5<\/strong>\uff1a\u7528\u8ffd\u8e2a\u529f\u80fd\u67e5\u770b\u6bcf\u6b65\u7ec6\u8282\uff0c\u5feb\u901f\u5b9a\u4f4d\u95ee\u9898\u3002<\/li>\n<li><strong>\u4f18\u5316<\/strong>\uff1a\u6839\u636e\u4efb\u52a1\u9700\u8981\u8bbe\u7f6e\u00a0<code>max_turns<\/code>\uff0c\u907f\u514d\u5faa\u73af\u8fc7\u591a\u3002<\/li>\n<li><strong>\u6269\u5c55<\/strong>\uff1a\u53c2\u8003\u5b98\u65b9\u00a0<code>examples<\/code>\u00a0\u6587\u4ef6\u5939\uff0c\u63a2\u7d22\u66f4\u591a\u7528\u6cd5\u3002<\/li>\n<\/ul>\n<p>\u5b98\u65b9\u6587\u6863\uff1ahttps:\/\/openai.github.io\/openai-agents-python\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OpenAI Agents SDK \u662f OpenAI \u63a8\u51fa\u7684\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u5f00\u53d1\u5de5\u5177\uff0c\u4e13\u4e3a\u6784\u5efa\u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41\u8bbe\u8ba1\u3002\u5b83\u57fa\u4e8e Python\uff0c\u7b80\u5355\u6613\u4e0a\u624b\uff0c\u652f\u6301\u5f00\u53d1\u8005\u901a\u8fc7\u914d\u7f6e\u667a\u80fd\u4f53\uff08Agents\uff09\u3001\u4efb\u52a1\u5207\u6362\uff08Handoffs\uff09\u3001\u5b89\u5168\u9a8c\u8bc1\uff08Guardrai&#8230;<\/p>\n","protected":false},"author":1,"featured_media":62021,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,201],"class_list":["post-28311","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aizhinengti"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/28311","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=28311"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/28311\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media\/62021"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=28311"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=28311"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=28311"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}