interface StoresConversationTurns

Methods

storeTurn(string $conversationId, string|null $newConversationTitle, string|null $participantType, string|int|null $participantId, AgentPrompt $prompt, AgentResponse $response, Throwable|null $exception = null)

Persist a complete turn atomically, creating its conversation when a title is supplied.

Details

at line 17
StoredTurn storeTurn(string $conversationId, string|null $newConversationTitle, string|null $participantType, string|int|null $participantId, AgentPrompt $prompt, AgentResponse $response, Throwable|null $exception = null)

Persist a complete turn atomically, creating its conversation when a title is supplied.

Parameters

string $conversationId
string|null $newConversationTitle
string|null $participantType
string|int|null $participantId
AgentPrompt $prompt
AgentResponse $response
Throwable|null $exception

Return Value

StoredTurn