File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed
src/server/api/memobase_server Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ async def flush_buffer(
12
12
user_id : str = Path (..., description = "The ID of the user" ),
13
13
buffer_type : BlobType = Path (..., description = "The type of buffer to flush" ),
14
14
) -> res .ChatModalAPIResponse :
15
- """Get the real-time user profiles for long term memory """
15
+ """Flush unprocessed blobs into Memory """
16
16
project_id = request .state .memobase_project_id
17
17
p = await controllers .buffer .wait_insert_done_then_flush (
18
18
user_id , project_id , buffer_type
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ async def delete_user_profile(
84
84
user_id : str = Path (..., description = "The ID of the user" ),
85
85
profile_id : str = Path (..., description = "The ID of the profile to delete" ),
86
86
) -> res .BaseResponse :
87
- """Get the real-time user profiles for long term memory """
87
+ """Delete a profile """
88
88
project_id = request .state .memobase_project_id
89
89
p = await controllers .profile .delete_user_profile (user_id , project_id , profile_id )
90
90
return p .to_response (res .IdResponse )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ async def infer_proactive_topics(
36
36
),
37
37
body : res .ProactiveTopicRequest = Body (..., description = "The body of the request" ),
38
38
) -> res .ProactiveTopicResponse :
39
- """Get the real-time user profiles for long term memory """
39
+ """Provide interest detection and personalized topics """
40
40
project_id = request .state .memobase_project_id
41
41
topic_limits_json = topic_limits_json or "{}"
42
42
try :
Original file line number Diff line number Diff line change @@ -194,8 +194,12 @@ class ProactiveTopicData(BaseModel):
194
194
195
195
196
196
class ProactiveTopicRequest (BaseModel ):
197
- messages : list [OpenAICompatibleMessage ] = Field (..., description = "The messages" )
198
- agent_context : Optional [str ] = Field (None , description = "The agent context" )
197
+ messages : list [OpenAICompatibleMessage ] = Field (
198
+ ..., description = "The latest messages between user/assistant"
199
+ )
200
+ agent_context : Optional [str ] = Field (
201
+ None , description = "The agent's roleplay prompt"
202
+ )
199
203
200
204
201
205
class UserContextImport (BaseModel ):
You can’t perform that action at this time.
0 commit comments