'1.0', 'info' => ['style' => 'ROA', 'product' => 'PaiLLMTrace', 'version' => '2024-03-11'], 'components' => [ 'schemas' => [ 'EvaluationConfig' => [ 'type' => 'object', 'properties' => [ 'Context' => [ 'type' => 'object', 'properties' => [ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1], 'SpanName' => ['type' => 'string', 'minLength' => 1], 'JsonPathInSpanValue' => ['type' => 'string'], ], ], 'Answer' => [ 'type' => 'object', 'properties' => [ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1], 'SpanName' => ['type' => 'string', 'minLength' => 1], 'JsonPathInSpanValue' => ['type' => 'string'], ], ], 'Query' => [ 'type' => 'object', 'properties' => [ 'JsonPathInSpan' => ['type' => 'string', 'minLength' => 1], 'SpanName' => ['type' => 'string', 'minLength' => 1], 'JsonPathInSpanValue' => ['type' => 'string'], ], ], ], ], 'ModelConfig' => [ 'type' => 'object', 'properties' => [ 'Temperature' => ['type' => 'number', 'format' => 'float'], 'ApiKey' => ['type' => 'string'], 'Endpoint' => ['type' => 'string'], 'UseFunctionCall' => ['type' => 'boolean'], 'TopP' => ['type' => 'number', 'format' => 'float'], 'Name' => ['type' => 'string'], 'IsSelfHost' => ['type' => 'boolean'], ], ], ], ], 'apis' => [ 'CreateOnlineEvalTask' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'body', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'TaskName' => ['type' => 'string', 'required' => false], 'AppName' => ['type' => 'string', 'required' => false], 'StartTime' => ['type' => 'string', 'required' => false], 'EndTime' => ['type' => 'string', 'required' => false], 'SamplingFrequencyMinutes' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Description' => ['type' => 'string', 'required' => false], 'Filters' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Operator' => ['type' => 'string', 'required' => false], 'Value' => ['type' => 'string', 'required' => false], ], ], ], 'SamplingRatio' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => false], 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false], ], ], ], ], ], 'CreateServiceIdentityRole' => [ 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [], ], 'DeleteOnlineEvalTask' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'EvaluateTrace' => [ 'path' => '/api/v1/PAILLMTrace/eval/trace/{TraceId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TraceId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'AppName' => ['type' => 'string', 'required' => false], 'MinTime' => ['type' => 'string', 'required' => false], 'MaxTime' => ['type' => 'string', 'required' => false], 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => true], 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false], 'EvaluationId' => ['type' => 'string', 'required' => false], ], ], ], ], ], 'GetEvaluationTemplates' => [ 'path' => '/api/v1/PAILLMTrace/eval/templates', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [], ], 'GetOnlineEvalTask' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetServiceIdentityRole' => [ 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [], ], 'GetXtraceToken' => [ 'path' => '/api/v1/PAILLMTrace/XtraceToken', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [], ], 'ListEvalResults' => [ 'path' => '/api/v1/PAILLMTrace/eval/results', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'RecordIds', 'in' => 'query', 'style' => 'simple', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'EvaluationId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Keyword', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListOnlineEvalTaskResults' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltaskresults', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TraceIds', 'in' => 'query', 'style' => 'simple', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'EvaluationId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MostRecentResultsOnly', 'in' => 'query', 'schema' => ['type' => 'boolean', 'required' => false], ], ], ], 'ListOnlineEvalTasks' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'MinTime', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxTime', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'AppName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Status', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Keyword', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SamplingMethod', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortOrder', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'ListTracesDatas' => [ 'path' => '/api/v1/PAILLMTrace/TracesDatas', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TraceIds', 'in' => 'query', 'style' => 'simple', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'SpanIds', 'in' => 'query', 'style' => 'simple', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'SessionId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MinTime', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'MaxTime', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'SpanName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'LlmAppName', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MinDuration', 'in' => 'query', 'schema' => ['type' => 'number', 'format' => 'float', 'required' => false], ], [ 'name' => 'MaxDuration', 'in' => 'query', 'schema' => ['type' => 'number', 'format' => 'float', 'required' => false], ], [ 'name' => 'OpentelemetryCompatible', 'in' => 'query', 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'HasStatusMessage', 'in' => 'query', 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'HasEvents', 'in' => 'query', 'schema' => ['type' => 'boolean', 'required' => false], ], [ 'name' => 'OwnerSubId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'EndUserId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Filters', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Operator' => ['type' => 'string', 'required' => false], 'Value' => ['type' => 'string', 'required' => false], ], ], ], ], [ 'name' => 'TraceReduceMethod', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortOrder', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'StopOnlineEvalTask' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}/stop', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'UpdateOnlineEvalTask' => [ 'path' => '/api/v1/PAILLMTrace/onlineevaltasks/{TaskId}', 'methods' => ['put'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'TaskName' => ['type' => 'string', 'required' => false], 'AppName' => ['type' => 'string', 'required' => false], 'Filters' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Key' => ['type' => 'string', 'required' => false], 'Operator' => ['type' => 'string', 'required' => false], 'Value' => ['type' => 'string', 'required' => false], ], ], ], 'StartTime' => ['type' => 'string', 'required' => false], 'EndTime' => ['type' => 'string', 'required' => false], 'SamplingFrequencyMinutes' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'SamplingRatio' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'Description' => ['type' => 'string', 'required' => false], 'EvaluationConfig' => ['$ref' => '#/components/schemas/EvaluationConfig', 'required' => false], 'ModelConfig' => ['$ref' => '#/components/schemas/ModelConfig', 'required' => false], ], ], ], ], ], ], 'endpoints' => [ ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-shenzhen.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-beijing.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-beijing.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-shanghai.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-shanghai.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paillmtrace.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paillmtrace.cn-hangzhou.aliyuncs.com', 'vpc' => 'paillmtrace-vpc.cn-hangzhou.aliyuncs.com'], ], ];