OptionalagentFull agent object for this member. Populated when type is "agent"; null for user members.
Optionalmembership_Role of this member within the thread. Common values are "owner" and "member". null when the membership type is not applicable.
Kind of participant. One of "user" (a human user) or "agent" (an AI agent).
OptionaluserFull user object for this member. Populated when type is "user"; null for agent members.
A participant in a chat thread, which may be either a human user or an AI agent. Exactly one of
useroragentis populated depending ontype.