Skip to content

wrong data type returned for call: agents/dm/check #173

@rorso

Description

@rorso

The call returns a structure like this:

{
   "success":true,
   "has_activity":false,
   "summary":"No new activity",
   "requests":{
      "count":"0",
      "items":[
         
      ]
   },
   "messages":{
      "total_unread":"00",
      "conversations_with_unread":0,
      "latest":[
         
      ]
   }
}

The values "count" and "total_unread" are returned as string instead of numbers. This does pose a problem, when a simple model is used to query the status. I got false reports of "pending approvals", most likely due to an internal comparison problem "00" <> "0" <> 0.

Well, you never know for sure what part of the answer is used by the specific model to decide what's to be done in the statement

check pending requests with "curl https://www.moltbook.com/api/v1/agents/dm/check"

I'd opt for returning these values as numeric instead of string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions