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(
1212 user_id : str = Path (..., description = "The ID of the user" ),
1313 buffer_type : BlobType = Path (..., description = "The type of buffer to flush" ),
1414) -> res .ChatModalAPIResponse :
15- """Get the real-time user profiles for long term memory """
15+ """Flush unprocessed blobs into Memory """
1616 project_id = request .state .memobase_project_id
1717 p = await controllers .buffer .wait_insert_done_then_flush (
1818 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(
8484 user_id : str = Path (..., description = "The ID of the user" ),
8585 profile_id : str = Path (..., description = "The ID of the profile to delete" ),
8686) -> res .BaseResponse :
87- """Get the real-time user profiles for long term memory """
87+ """Delete a profile """
8888 project_id = request .state .memobase_project_id
8989 p = await controllers .profile .delete_user_profile (user_id , project_id , profile_id )
9090 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(
3636 ),
3737 body : res .ProactiveTopicRequest = Body (..., description = "The body of the request" ),
3838) -> res .ProactiveTopicResponse :
39- """Get the real-time user profiles for long term memory """
39+ """Provide interest detection and personalized topics """
4040 project_id = request .state .memobase_project_id
4141 topic_limits_json = topic_limits_json or "{}"
4242 try :
Original file line number Diff line number Diff line change @@ -194,8 +194,12 @@ class ProactiveTopicData(BaseModel):
194194
195195
196196class 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+ )
199203
200204
201205class UserContextImport (BaseModel ):
You can’t perform that action at this time.
0 commit comments