mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-12 16:56:02 +00:00
doc: 补全部分注释
This commit is contained in:
@@ -6,6 +6,8 @@ from ...core import app, entities as core_entities
|
||||
|
||||
|
||||
class SessionManager:
|
||||
"""会话管理器
|
||||
"""
|
||||
|
||||
ap: app.Application
|
||||
|
||||
@@ -39,6 +41,8 @@ class SessionManager:
|
||||
return session
|
||||
|
||||
async def get_conversation(self, session: core_entities.Session) -> core_entities.Conversation:
|
||||
"""获取对话或创建对话"""
|
||||
|
||||
if not session.conversations:
|
||||
session.conversations = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user