Skip to content

Commit 4d2bbf2

Browse files
committed
Add Chat Session Query Support.
1 parent dce69c4 commit 4d2bbf2

File tree

4 files changed

+83
-1
lines changed

4 files changed

+83
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-08-20 Version: 1.0.1
2+
- Add Chat Session Query Support.
3+
- Add Chat Session Close Support.
4+
15
2025-07-16 Version: 1.0.0
26
- Add Support For Create Chat Session.
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.0'
1+
__version__ = '1.0.1'
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class CloseChatInstanceSessionsRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'LingMou', '2025-05-27', 'CloseChatInstanceSessions')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/openapi/chat/instances/[instanceId]/sessions/close')
28+
self.set_method('PUT')
29+
30+
def get_instanceId(self): # String
31+
return self.get_path_params().get('instanceId')
32+
33+
def set_instanceId(self, instanceId): # String
34+
self.add_path_param('instanceId', instanceId)
35+
def get_sessionIds(self): # String
36+
return self.get_body_params().get('sessionIds')
37+
38+
def set_sessionIds(self, sessionIds): # String
39+
self.add_body_params('sessionIds', sessionIds)
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RoaRequest
21+
22+
class QueryChatInstanceSessionsRequest(RoaRequest):
23+
24+
def __init__(self):
25+
RoaRequest.__init__(self, 'LingMou', '2025-05-27', 'QueryChatInstanceSessions')
26+
self.set_protocol_type('https')
27+
self.set_uri_pattern('/openapi/chat/instances/[instanceId]/sessions')
28+
self.set_method('GET')
29+
30+
def get_instanceId(self): # String
31+
return self.get_path_params().get('instanceId')
32+
33+
def set_instanceId(self, instanceId): # String
34+
self.add_path_param('instanceId', instanceId)
35+
def get_sessionIds(self): # String
36+
return self.get_query_params().get('sessionIds')
37+
38+
def set_sessionIds(self, sessionIds): # String
39+
self.add_query_param('sessionIds', sessionIds)

0 commit comments

Comments
 (0)