j9九游会登录/ 智果(agentarts)智能体平台/ api参考/ api/ / / 获取评估器模板 - showopsevaluatortemplate
更新时间:2026-07-17 gmt 08:00

获取评估器模板 -j9九游会登录

功能介绍

该接口用于根据模板id获取特定评估器模板的详细信息,支持查询模板的完整配置和使用说明,适用于需要深入了解特定模板配置的场景。

调用方法

请参见如何调用api

授权信息

账号根用户具备所有api的调用权限,如果使用账号下的iam用户调用当前api,该iam用户需具备如下身份策略权限,更多的权限说明请参见。

授权项

访问级别

资源类型(*为必须)

条件键

别名

依赖的授权项

agentarts::showopsevaluatortemplate

read

-

-

-

-

uri

get /v1/ops/evaluator-templates/{template_id}

表1 路径参数

参数

是否必选

参数类型

描述

template_id

string

参数解释:

模板的唯一标识符(id)。该参数用于在api路径中定位特定的配置模板或评估模板资源。

约束限制:

长度为1到100个字符的字符串。

取值范围:

通常由英文、数字、中划线(-)及下划线(_)组成,建议字符位数不超过 64 位。

默认取值:

不涉及。

请求参数

响应参数

状态码:200

表2 响应body参数

参数

参数类型

描述

template

opsshowevaluatortemplateinfo object

参数解释:

模板信息包含完整评估器模板的所有详细属性和数据。

取值范围:

不涉及。

表3 opsshowevaluatortemplateinfo

参数

参数类型

描述

base_info

opsevaluatorbaseinfo object

参数解释:

评估器的基础审计信息,记录创建与更新详情。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

description

string

参数解释:

描述用于详细说明评估器的功能、用途和应用场景。

取值范围:

描述性字符串。

evaluator_content

opsshowevaluatortemplateevaluatorcontent object

参数解释:

评估器信息包含具体的实现逻辑,如输入输出规范等。

取值范围:

不涉及。

evaluator_info

opsshowevaluatortemplateevaluatorinfo object

参数解释:

评估器元数据补充信息。

取值范围:

不涉及。

evaluator_type

integer

参数解释:

评估器的分类类型。

取值范围:

不涉及。

name

string

参数解释:

评估器的名字。

取值范围:

不涉及。

popularity

string

参数解释:

受欢迎程度分值。

取值范围:

字符串形式的数字。

tags

opsshowevaluatortemplatetags object

参数解释:

评估器标签用于分类和检索。

取值范围:

不涉及。

template_id

string

参数解释:

评估器模板的唯一id。

取值范围:

不涉及。

表4 opsevaluatorbaseinfo

参数

参数类型

描述

created_at

string

参数解释:

评估器的创建时间。

created_by

evaluationopscreatedby object

参数解释:

记录评估资产创建者详情。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

updated_at

string

参数解释:

评估器的最近一次更新时间。

updated_by

evaluationopsupdatedby object

参数解释:

记录评估资产最近一次变更操作者信息。

约束限制:

不涉及。

取值范围:

不涉及。

默认取值:

不涉及。

表5 evaluationopscreatedby

参数

参数类型

描述

user_id

string

参数解释:

资源创建者的唯一标识符。

name

string

参数解释:

资源创建者的显示名称。

avatar_url

string

参数解释:

创建者的头像链接。

表6 evaluationopsupdatedby

参数

参数类型

描述

user_id

string

参数解释:

最后一次更新资源的用户的id。

name

string

参数解释:

更新者的显示名称。

avatar_url

string

参数解释:

更新者的头像链接。

表7 opsshowevaluatortemplateevaluatorcontent

参数

参数类型

描述

input_schemas

array of opsshowevaluatortemplateinputschemas objects

参数解释:

输入参数定义列表。

取值范围:

不涉及。

output_schemas

array of opsshowevaluatortemplateoutputschemas objects

参数解释:

输出参数定义评估器返回值的格式和结构。

取值范围:

不涉及。

prompt_evaluator

opsshowevaluatortemplateevaluator object

参数解释:

提示词信息包含评估过程中的提示词内容。

取值范围:

不涉及。

receive_chat_history

boolean

参数解释:

标识是否需要接收对话历史。

取值范围:

true (是), false (否)。

表8 opsshowevaluatortemplateinputschemas

参数

参数类型

描述

json_schema

string

参数解释:

json入参描述输入参数的数据结构。

取值范围:

符合jsonschema标准的字符串。

key

string

参数解释:

关键字用于标识和引用输入参数。

取值范围:

合法的参数标识符。

support_content_types

array of strings

参数解释:

支持的类型标识参数可以处理的数据格式。

取值范围:

不涉及。

表9 opsshowevaluatortemplateoutputschemas

参数

参数类型

描述

json_schema

string

参数解释:

json出参描述输出返回值的数据结构。

取值范围:

符合jsonschema 标准的字符串。

key

string

参数解释:

关键字用于标识输出参数。

取值范围:

合法的参数标识符。

support_content_types

array of strings

参数解释:

支持的类型标识输出参数可以返回的格式。

取值范围:

不涉及。

表10 opsshowevaluatortemplateevaluator

参数

参数类型

描述

message_list

array of opsshowevaluatortemplatepromptmessage objects

参数解释:

prompt 信息列表包含各种角色提示词。

取值范围:

不涉及。

model_config

opsshowevaluatortemplatemodelconfig object

参数解释:

模型配置定义使用的模型参数。

取值范围:

不涉及。

表11 opsshowevaluatortemplatepromptmessage

参数

参数类型

描述

content

opsshowevaluatortemplatepromptcontent object

参数解释:

prompt 内容包含文本和格式信息。

取值范围:

不涉及。

role

integer

参数解释:

角色标识消息发送者的身份。

取值范围:

1 (系统), 2 (用户)。

表12 opsshowevaluatortemplatepromptcontent

参数

参数类型

描述

content_type

string

参数解释:

类型标识提示词内容的表现形式。

取值范围:

text。

format

integer

参数解释:

格式标识提示词内容的结构化形式。

取值范围:

不涉及。

text

string

参数解释:

提示词的具体文本信息。

取值范围:

不涉及。

表13 opsshowevaluatortemplatemodelconfig

参数

参数类型

描述

max_tokens

integer

参数解释:

最大token限制模型生成长度。

取值范围:

由具体模型能力决定。

model_id

string

参数解释:

模型的唯一标识符。

取值范围:

系统预置的模型id。

model_name

string

参数解释:

模型的显示名称。

取值范围:

不涉及。

temperature

float

参数解释:

温度控制生成内容的随机性。

取值范围:

不涉及。

top_p

float

参数解释:

核采样控制词汇选择范围。

取值范围:

不涉及。

表14 opsshowevaluatortemplateevaluatorinfo

参数

参数类型

描述

benchmark

string

参数解释:

评估器的测试标准或参考系。

取值范围:

不涉及。

user_manual_url

string

参数解释:

指向评估器用户手册的网址。

取值范围:

不涉及。

vendor

string

参数解释:

评估器的提供方标识。

取值范围:

不涉及。

vendor_url

string

参数解释:

供应商的官方网址。

取值范围:

不涉及。

表15 opsshowevaluatortemplatetags

参数

参数类型

描述

zh-cn

opsshowevaluatortemplatetagszhcn object

参数解释:

中文环境下的标签分类。

取值范围:

不涉及。

表16 opsshowevaluatortemplatetagszhcn

参数

参数类型

描述

businessscenario

array of strings

参数解释:

业务场景标签。

取值范围:

不涉及。

category

array of strings

参数解释:

类型标签标识技术领域。

取值范围:

不涉及。

name

array of strings

参数解释:

名字标签标识功能特点。

取值范围:

不涉及。

objective

array of strings

参数解释:

目标标签反映核心价值。

取值范围:

不涉及。

targettype

array of strings

参数解释:

目标类型标签标识处理对象。

取值范围:

不涉及。

请求示例

通过模板id获取评估器模板的详细配置、预设参数及 prompt 示例。

get https://api.example.com/v1/ops/evaluator-templates/tpl-9876543210

响应示例

状态码:200

获取评估器模板信息成功

{
  "template" : {
    "base_info" : {
      "created_at" : "2026-04-10t16:58:00z",
      "created_by" : {
        "user_id" : "user_id",
        "name" : "name",
        "avatar_url" : "avatar_url"
      },
      "updated_at" : "2026-04-10t17:30:00z",
      "updated_by" : {
        "user_id" : "user_id",
        "name" : "name",
        "avatar_url" : "https://example.com/avatar.png"
      }
    },
    "description" : "输出是否引用了文本中的真实引用",
    "evaluator_content" : {
      "input_schemas" : [ {
        "json_schema" : "{\"type\": \"string\"}",
        "key" : "input",
        "support_content_types" : [ "text" ]
      } ],
      "output_schemas" : [ {
        "json_schema" : "{\"type\": \"number\"}",
        "key" : "score",
        "support_content_types" : [ "text" ]
      } ],
      "prompt_evaluator" : {
        "message_list" : [ {
          "content" : {
            "content_type" : "text",
            "format" : 1,
            "text" : "string"
          },
          "role" : 1
        } ],
        "model_config" : {
          "max_tokens" : 4096,
          "model_id" : "1749615103",
          "model_name" : "豆包·1.6·自动深度思考",
          "temperature" : 0.1,
          "top_p" : 0.7
        }
      },
      "receive_chat_history" : false
    },
    "evaluator_info" : {
      "benchmark" : "",
      "user_manual_url" : "",
      "vendor" : "cozeloop",
      "vendor_url" : ""
    },
    "evaluator_type" : 1,
    "name" : "相关性",
    "popularity" : "700",
    "tags" : {
      "zh-cn" : {
        "businessscenario" : [ "aigc" ],
        "category" : [ "llm" ],
        "name" : [ "相关性" ],
        "objective" : [ "内容质量" ],
        "targettype" : [ "文本" ]
      }
    },
    "template_id" : "20260126"
  }
}

状态码

状态码

描述

200

获取评估器模板信息成功

错误码

请参见错误码

相关文档

网站地图