Lybic Docs

解析 LLM 文本输出

解析计算机使用模型的输出文本并返回解析后的操作。

POST
/api/computer-use/parse/{type}

解析计算机使用模型的输出文本并返回解析后的操作。

Path Parameters

type*string

用于解析输入的提示类型

Value in"ui-tars" | "seed" | "glm-4.1v" | "glm-4.5v" | "qwen-2.5-vl" | "pyautogui"

Request Body

application/json

textContent*string

要解析的文本内容

Response Body

application/json

curl -X POST "https://loading/api/computer-use/parse/ui-tars" \  -H "Content-Type: application/json" \  -d '{    "textContent": "string"  }'
{
  "actions": [
    {
      "callId": "string",
      "type": "mouse:click",
      "x": {
        "type": "px",
        "value": 0
      },
      "y": {
        "type": "px",
        "value": 0
      },
      "button": 0,
      "holdKey": "string",
      "relative": true
    }
  ],
  "unknown": "string",
  "memory": "string",
  "thoughts": "string"
}