Skip to content
Discussion options

You must be logged in to vote

Your understanding is essentially correct for a normal Responses AsIChatClient(...) with stored output enabled. The precise model is: the MAF session holds the current head of a service-managed response chain; it is not itself the full transcript.

The path through the code is:

ChatClientAgentSession.ConversationId
    -> ChatOptions.ConversationId
    -> previous_response_id = resp_n
    <- response.id = resp_n+1
    -> session.ConversationId = resp_n+1

MAF copies the session ID into ChatOptions and later writes the returned ID back. In the OpenAI adapter, a conv_* ID is sent as conversation, while any other non-null ID (including resp_*) is sent as previous_response_id. In resp_* mode, …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@VaclavK
Comment options

Answer selected by VaclavK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants