'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', ], ], ], 'QuestionAnswer' => [ 'type' => 'object', 'properties' => [ 'Answer' => [ 'type' => 'object', 'properties' => [ 'Text' => [ 'type' => 'string', ], 'Contexts' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], ], ], ], 'Question' => [ 'type' => 'string', ], 'GroundTruth' => [ 'type' => 'object', 'properties' => [ 'Text' => [ 'type' => 'string', ], 'Contexts' => [ 'type' => 'array', 'items' => [ 'type' => 'string', ], ], ], ], ], ], ], ], 'apis' => [ '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, ], ], ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], '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, ], ], ], ], ], ], '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, ], ], ], ], ], ], '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, ], ], ], ], 'CreateServiceIdentityRole' => [ 'path' => '/api/v1/PAILLMTrace/ServiceIdentityRole', 'methods' => [ 'post', ], 'schemes' => [ 'https', ], 'security' => [ [ 'AK' => [], ], ], 'consumes' => [ 'application/json', ], 'produces' => [ 'application/json', ], 'deprecated' => false, 'parameters' => [], ], '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, ], ], ], ], ], 'endpoints' => [ [ 'regionId' => 'cn-hangzhou', 'endpoint' => 'paillmtrace.cn-hangzhou.aliyuncs.com', ], [ 'regionId' => 'cn-beijing', 'endpoint' => 'paillmtrace.cn-beijing.aliyuncs.com', ], [ 'regionId' => 'cn-shanghai', 'endpoint' => 'paillmtrace.cn-shanghai.aliyuncs.com', ], [ 'regionId' => 'cn-shenzhen', 'endpoint' => 'paillmtrace.cn-shenzhen.aliyuncs.com', ], ], ];