'1.0', 'info' => ['style' => 'ROA', 'product' => 'PAICopilot', 'version' => '2025-07-31'], 'components' => [ 'schemas' => [ 'Chat' => [ 'type' => 'object', 'properties' => [ 'ChatId' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], 'Question' => ['$ref' => '#/components/schemas/ChatDetail'], 'Answer' => ['$ref' => '#/components/schemas/ChatDetail'], 'OwnerId' => ['type' => 'string'], 'UserId' => ['type' => 'string'], 'Title' => ['type' => 'string'], 'SessionId' => ['type' => 'string'], 'Status' => ['type' => 'string'], 'ExtraData' => ['type' => 'string'], 'Message' => ['type' => 'string'], ], ], 'ChatDetail' => [ 'type' => 'object', 'properties' => [ 'UserInfo' => [ 'type' => 'object', 'properties' => [ 'Role' => ['type' => 'string'], 'Name' => ['type' => 'string'], ], ], 'Content' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], ], ], 'Feedback' => [ 'type' => 'object', 'properties' => [ 'FeedbackId' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], 'FeedbackAction' => ['type' => 'string'], 'FeedbackMessage' => ['type' => 'string'], 'OwnerId' => ['type' => 'string'], 'UserId' => ['type' => 'string'], 'SessionId' => ['type' => 'string'], 'ChatId' => ['type' => 'string'], ], ], 'Label' => [ 'type' => 'object', 'properties' => [ 'Key' => ['type' => 'string'], 'Value' => ['type' => 'string'], ], ], 'Session' => [ 'type' => 'object', 'properties' => [ 'SessionId' => ['type' => 'string'], 'GmtCreateTime' => ['type' => 'string', 'format' => 'iso8601_normal'], 'GmtModified' => ['type' => 'string', 'format' => 'iso8601_normal'], 'OwnerId' => ['type' => 'string'], 'UserId' => ['type' => 'string'], 'SessionTitle' => ['type' => 'string'], ], ], ], ], 'apis' => [ 'CreateChat' => [ 'path' => '/api/v1/sessions/{SessionId}/chats', 'methods' => ['post'], 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => [], 'deprecated' => false, 'parameters' => [ [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Title' => ['type' => 'string', 'required' => false], 'ExtraData' => ['type' => 'string', 'required' => false], 'Question' => ['$ref' => '#/components/schemas/ChatDetail', 'required' => false], 'Payload' => ['type' => 'object', 'required' => false], ], ], ], ], ], 'CreateSession' => [ 'path' => '/api/v1/sessions', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'Title' => ['type' => 'string', 'required' => false], 'Labels' => [ 'type' => 'array', 'required' => false, 'items' => ['$ref' => '#/components/schemas/Label', 'required' => false], ], ], ], ], ], ], 'DeleteChat' => [ 'path' => '/api/v1/sessions/{SessionId}/chats/{ChatId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ChatId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'DeleteSession' => [ 'path' => '/api/v1/sessions/{SessionId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'GetChat' => [ 'path' => '/api/v1/sessions/{SessionId}/chats/{ChatId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ChatId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Verbose', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetSession' => [ 'path' => '/api/v1/sessions/{SessionId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'ListChats' => [ 'path' => '/api/v1/sessions/{SessionId}/chats', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SessionId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Verbose', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], 'ListSessions' => [ 'path' => '/api/v1/sessions', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'Order', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'Labels', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'SearchInfo' => [ 'path' => '/api/v1/searches', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['application/json'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'body', 'in' => 'body', 'style' => 'json', 'schema' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'KnowledgeBaseFilters' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'CollectionName' => ['type' => 'string', 'required' => true], 'ResultLimit' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'ScoreThreshold' => ['type' => 'number', 'format' => 'double', 'required' => false], 'Query' => ['type' => 'string', 'required' => true], ], ], ], 'WebFilters' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'ResultLimit' => ['type' => 'integer', 'format' => 'int32', 'required' => false], 'IncludeSites' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], 'ScoreThreshold' => ['type' => 'number', 'format' => 'double', 'required' => false], 'Query' => ['type' => 'string', 'required' => true], 'Category' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], ], ], ], 'endpoints' => [ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.ap-southeast-1.aliyuncs.com', 'endpoint' => 'paicopilot.ap-southeast-1.aliyuncs.com', 'vpc' => 'paicopilot-vpc.ap-southeast-1.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => '华北2(北京)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-beijing.aliyuncs.com', 'endpoint' => 'paicopilot.cn-beijing.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-hangzhou', 'regionName' => '华东1(杭州)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-hangzhou.aliyuncs.com', 'endpoint' => 'paicopilot.cn-hangzhou.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-hangzhou.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-shanghai.aliyuncs.com', 'endpoint' => 'paicopilot.cn-shanghai.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-shenzhen', 'regionName' => '华南1(深圳)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-shenzhen.aliyuncs.com', 'endpoint' => 'paicopilot.cn-shenzhen.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'cn-wulanchabu', 'regionName' => '华北6(乌兰察布)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'paicopilot.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'paicopilot.cn-wulanchabu.aliyuncs.com', 'vpc' => 'paicopilot-vpc.cn-wulanchabu.aliyuncs.com'], ], ];