feat: filter receive messages by since

This commit is contained in:
zhaoyilun
2026-07-10 01:27:27 +08:00
parent e7324d8aa6
commit aa636f5a33
9 changed files with 164 additions and 14 deletions

View File

@@ -301,6 +301,7 @@ func verifyConfiguredReceiveSource(ctx context.Context) (int, int, int, int) {
callResult, err := session.CallTool(serverCtx, &mcp.CallToolParams{Name: "isphere_receive_messages", Arguments: map[string]any{
"conversation_id": "project-room@conference.imopenfire1-lanzhou|sender@imopenfire1-lanzhou",
"query": "report",
"since": "2026-07-07T11:30:00Z",
"limit": 5,
}})
if err != nil {
@@ -425,6 +426,7 @@ func verifyConfiguredDirectorySource(ctx context.Context) (int, int, int, int) {
callResult, err := session.CallTool(serverCtx, &mcp.CallToolParams{Name: "isphere_receive_messages", Arguments: map[string]any{
"conversation_id": "project-room@conference.imopenfire1-lanzhou|sender@imopenfire1-lanzhou",
"query": "dir-report",
"since": "2026-07-07T11:30:00Z",
"limit": 5,
}})
if err != nil {