query chatMessages($agent_id: String!, $team_id: String!) @api(name: "ai") {
  chatMessages(agent_id: $agent_id, team_id: $team_id)
    @rest(type: "ChatMessage", path: "/chat/history?{args}", method: "GET", endpoint: "ai") {
    id
    session_id
    sender_user_id
    sender_account_id
    message
    thoughts
    created_on
    parent
    parent_id
    agent_id
    agent
    team_id
    team
    sender_user
    run_id
  }
}
