RemembersConversations
trait RemembersConversations
Properties
| protected string|null | $conversationId | ||
| protected object|null | $conversationUser |
Methods
Start a new conversation for the given participant.
Start a new conversation for the given user.
Continue an existing conversation, optionally as the given participant.
Continue the given conversation for the participant, or start a new one when there is none.
Continue the given participant's last conversation with this agent.
Get the list of messages comprising the conversation so far.
Get the maximum number of conversation messages to include in context.
Get the UUID for the current conversation, if applicable.
Determine if the conversation has a participant and is thus being remembered.
Get the participant having the current conversation.
Details
at line 19
RemembersConversations
forParticipant(object $participant)
Start a new conversation for the given participant.
at line 30
RemembersConversations
forUser(object $user)
Start a new conversation for the given user.
at line 38
RemembersConversations
continue(string $conversationId, object|null $as = null)
Continue an existing conversation, optionally as the given participant.
at line 49
RemembersConversations
continueOrStart(string|null $conversationId, object $as)
Continue the given conversation for the participant, or start a new one when there is none.
at line 59
RemembersConversations
continueLastConversation(object $as)
Continue the given participant's last conversation with this agent.
at line 72
iterable
messages()
Get the list of messages comprising the conversation so far.
at line 88
protected int
maxConversationMessages()
Get the maximum number of conversation messages to include in context.
at line 96
string|null
currentConversation()
Get the UUID for the current conversation, if applicable.
at line 104
bool
hasConversationParticipant()
Determine if the conversation has a participant and is thus being remembered.
at line 112
object|null
conversationParticipant()
Get the participant having the current conversation.