Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

358 B
Raw Blame
/**
 * Whether an Agent wrote a public message: every reply, and a request one Agent sent another in
 * their conversation. A deleted Agent's reply keeps `reply` after its reference is cleared.
 */
export const isAgentAuthored = (message: { agentId: string | null; routingStatus: string }) =>
  message.routingStatus === 'reply' || message.agentId !== null;