'1.0', 'info' => ['style' => 'RPC', 'product' => 'AlikafkaKopilot', 'version' => '2026-04-14'], 'directories' => ['KopilotChatStream', 'KopilotFeedback', 'KopilotListConversationChatMessages', 'KopilotListConversations', 'KopilotQueryStatus'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'KopilotChatStream' => [ 'path' => '/', 'methods' => ['post'], 'schemes' => ['https', 'sse'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'none', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREalikafkaH77LGU'], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ 'name' => 'Message', 'in' => 'query', 'schema' => ['description' => 'The chat message content entered by the user.', 'type' => 'string', 'required' => false, 'example' => 'hello', 'title' => ''], ], [ 'name' => 'SessionId', 'in' => 'query', 'schema' => ['description' => 'The session ID.', 'type' => 'string', 'required' => false, 'example' => 'efff104e-c0b1-4005-8c73-*********', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Role' => ['description' => 'The role identifier.', 'type' => 'string', 'example' => 'assistant', 'title' => ''], 'Type' => ['description' => 'The event or message type.', 'type' => 'string', 'example' => 'delta', 'title' => ''], 'Message' => ['description' => 'The message body.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'ThreadId' => ['description' => 'The session thread ID.', 'type' => 'string', 'example' => 'thread_abc123xyz', 'title' => ''], 'Delta' => ['description' => 'The streaming incremental content.', 'type' => 'string', 'example' => 'hello', 'title' => ''], 'ToolCallId' => ['description' => 'The unique ID of the tool invoke.', 'type' => 'string', 'example' => 'call_xyz789012', 'title' => ''], 'Content' => ['description' => 'The actual content.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'ToolCallName' => ['description' => 'The tool or function name.', 'type' => 'string', 'example' => 'search_knowledge_base', 'title' => ''], 'RunId' => ['description' => 'The run task ID.', 'type' => 'string', 'example' => '5737d000********', 'title' => ''], 'MessageId' => ['description' => 'The unique message ID.', 'type' => 'string', 'example' => '4b209618fd066c4354037b4b0634ffc9', 'title' => ''], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '76E1F1AA-6046-5074-96E2-79A37AFBD2FA', 'title' => ''], ], 'description' => '', 'title' => '', 'example' => '', ], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'Agent stream chat session', 'summary' => 'Initiates an agent stream chat session.', 'changeSet' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Role\\": \\"assistant\\",\\n \\"Type\\": \\"delta\\",\\n \\"Message\\": \\"test\\",\\n \\"ThreadId\\": \\"thread_abc123xyz\\",\\n \\"Delta\\": \\"hello\\",\\n \\"ToolCallId\\": \\"call_xyz789012\\",\\n \\"Content\\": \\"test\\",\\n \\"ToolCallName\\": \\"search_knowledge_base\\",\\n \\"RunId\\": \\"5737d000********\\",\\n \\"MessageId\\": \\"4b209618fd066c4354037b4b0634ffc9\\",\\n \\"RequestId\\": \\"76E1F1AA-6046-5074-96E2-79A37AFBD2FA\\"\\n}","type":"json"}]', ], 'KopilotFeedback' => [ 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREalikafkaH77LGU'], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ 'name' => 'SessionId', 'in' => 'query', 'schema' => ['description' => 'The session ID.', 'type' => 'string', 'required' => false, 'example' => 'e356c91c-8220-425c-9d86-********', 'title' => ''], ], [ 'name' => 'TurnId', 'in' => 'query', 'schema' => ['description' => 'The primary key ID.', 'type' => 'string', 'required' => false, 'example' => '5243231*****', 'title' => ''], ], [ 'name' => 'Feedback', 'in' => 'query', 'schema' => [ 'description' => 'The user satisfaction level. Valid values:'."\n" ."\n" .'- 1: satisfied'."\n" .'- -1: not satisfied'."\n" .'- 0: cancel the evaluation', 'enumValueTitles' => [], 'type' => 'string', 'required' => false, 'example' => '1', 'title' => '', ], ], [ 'name' => 'Comment', 'in' => 'query', 'schema' => ['description' => 'The user feedback comment.', 'type' => 'string', 'required' => false, 'example' => 'good', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E522C7AB-AA99-53B1-BEE7-8BA83ED678F7'], 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], 'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''], 'Data' => [ 'description' => 'The data returned when the call is successful.', 'type' => 'object', 'additionalProperties' => ['description' => 'The primary key ID.', 'type' => 'integer', 'format' => 'int64', 'example' => '1234', 'title' => ''], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'Evaluate user session', 'summary' => 'Evaluates a user session.', 'changeSet' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E522C7AB-AA99-53B1-BEE7-8BA83ED678F7\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"key\\": 1234\\n }\\n}","type":"json"}]', ], 'KopilotListConversationChatMessages' => [ 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREalikafkaH77LGU'], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'SessionId', 'in' => 'query', 'schema' => ['description' => 'The session ID.', 'type' => 'string', 'required' => false, 'example' => 'e356c91c-8220-425c-9d86-********', 'title' => ''], ], [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ 'name' => 'BeforeTurnId', 'in' => 'query', 'schema' => ['description' => 'The cursor.'."\n" ."\n" .'> If this parameter is not specified, the last pageSize turn IDs are returned. If this parameter is specified, the corresponding turn IDs are returned.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '2345', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'F69385B9-2139-5A07-AE64-37C4B6ED308E'], 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], 'Code' => ['description' => 'The return code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''], 'Data' => [ 'description' => 'The data returned if the call is successful.', 'type' => 'object', 'properties' => [ 'SessionId' => ['description' => 'The session ID.', 'type' => 'string', 'example' => '87ce9505-7dec-4fd7-bc7c-e66d949bfdc9', 'title' => ''], 'TotalTurns' => ['description' => 'The total number of turn IDs.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''], 'Messages' => [ 'description' => 'The list of messages.', 'type' => 'array', 'items' => [ 'description' => 'The message body.', 'type' => 'object', 'properties' => [ 'Role' => ['description' => 'The role identifier.', 'type' => 'string', 'example' => 'assistant', 'title' => ''], 'Content' => ['description' => 'The actual content of the message.', 'type' => 'string', 'example' => 'test', 'title' => ''], 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '17575885545677', 'title' => ''], 'TurnId' => ['description' => 'The primary key ID.', 'type' => 'string', 'example' => '2345', 'title' => ''], 'Feedback' => ['description' => 'The user satisfaction level.', 'type' => 'string', 'example' => '1', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], 'HasMore' => ['description' => 'Indicates whether more data is available.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'NextBeforeTurnId' => ['description' => 'The cursor for the next page.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'Query historical conversations', 'summary' => 'Queries historical conversations.', 'changeSet' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F69385B9-2139-5A07-AE64-37C4B6ED308E\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"SessionId\\": \\"87ce9505-7dec-4fd7-bc7c-e66d949bfdc9\\",\\n \\"TotalTurns\\": 2,\\n \\"Messages\\": [\\n {\\n \\"Role\\": \\"assistant\\",\\n \\"Content\\": \\"test\\",\\n \\"CreateTime\\": \\"17575885545677\\",\\n \\"TurnId\\": \\"2345\\",\\n \\"Feedback\\": \\"1\\"\\n }\\n ],\\n \\"HasMore\\": true,\\n \\"NextBeforeTurnId\\": 1\\n }\\n}","type":"json"}]', ], 'KopilotListConversations' => [ 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREalikafkaH77LGU'], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ 'name' => 'Page', 'in' => 'query', 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ 'name' => 'Size', 'in' => 'query', 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '2DF166F2-F581-5254-AAB6-B482083FA7B4'], 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], 'Code' => ['description' => 'The status code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''], 'Data' => [ 'description' => 'The data returned if the call is successful.', 'type' => 'object', 'properties' => [ 'UserId' => ['description' => 'The user UID.', 'type' => 'string', 'example' => '1734455674565', 'title' => ''], 'Count' => ['description' => 'The number of entries returned on the current page in a paged query.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], 'ConversationIds' => [ 'description' => 'The list of session IDs.', 'type' => 'array', 'items' => ['description' => 'The session ID.', 'type' => 'string', 'example' => 'ids', 'title' => ''], 'title' => '', 'example' => '', ], 'Page' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], 'Size' => ['description' => 'The number of entries on the current page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], 'Total' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int64', 'example' => '2', 'title' => ''], 'TotalPages' => ['description' => 'The total number of pages.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'Query all session iDs of a user', 'summary' => 'Queries the session IDs of the current user in the Console channel, sorted by creation time in descending order. Pagination is supported.', 'changeSet' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2DF166F2-F581-5254-AAB6-B482083FA7B4\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"UserId\\": \\"1734455674565\\",\\n \\"Count\\": 1,\\n \\"ConversationIds\\": [\\n \\"ids\\"\\n ],\\n \\"Page\\": 1,\\n \\"Size\\": 10,\\n \\"Total\\": 2,\\n \\"TotalPages\\": 1\\n }\\n}","type":"json"}]', ], 'KopilotQueryStatus' => [ 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'none', 'riskType' => 'high', 'chargeType' => 'paid', 'abilityTreeNodes' => ['FEATUREalikafkaH77LGU'], 'autoTest' => true, 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'RegionId', 'in' => 'query', 'schema' => ['description' => 'The region ID.', 'type' => 'string', 'required' => true, 'example' => 'cn-beijing', 'title' => ''], ], [ 'name' => 'Owner', 'in' => 'query', 'schema' => ['description' => 'The account ID of the owner.', 'type' => 'string', 'required' => true, 'example' => '1590639435720201', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '2DF166F2-F581-5254-AAB6-B482083FA7B4'], 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''], 'Code' => ['description' => 'The status code. A value of 200 indicates success.', 'type' => 'integer', 'format' => 'int64', 'example' => '200', 'title' => ''], 'Data' => [ 'description' => 'The status information returned when the call is successful.', 'type' => 'object', 'properties' => [ 'Uid' => ['description' => 'The UID of the user.', 'type' => 'string', 'example' => '206022063004684756', 'title' => ''], 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'instanceId', 'title' => ''], 'LifeStatus' => ['description' => 'The instance status.', 'type' => 'string', 'example' => 'NotActivated', 'title' => ''], 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-beijing', 'title' => ''], 'ActivateTime' => ['description' => 'The activation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '17346565678778', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'staticInfo' => ['returnType' => 'synchronous'], 'title' => 'Query instance activation status', 'summary' => 'Queries the activation status of an instance.', 'changeSet' => [], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2DF166F2-F581-5254-AAB6-B482083FA7B4\\",\\n \\"Success\\": true,\\n \\"Code\\": 200,\\n \\"Data\\": {\\n \\"Uid\\": \\"206022063004684756\\",\\n \\"InstanceId\\": \\"instanceId\\",\\n \\"LifeStatus\\": \\"NotActivated\\",\\n \\"RegionId\\": \\"cn-beijing\\",\\n \\"ActivateTime\\": 17346565678778\\n }\\n}","type":"json"}]', ], ], 'endpoints' => [], 'errorCodes' => [], 'changeSet' => [], ];