Expand description
Building the request one turn sends: the conversation as Azure should replay it, plus the system prompt and the tools the caller may use.
Structs§
- Turn
Inputs 🔒 - The database reads a turn’s request is assembled from: the configured model, the
conversation’s stored messages, and the tools
user_contextis currently permitted to use.
Functions§
- conversation_
prompt_ 🔒cache_ key - Routes every request of one conversation to the same prompt cache, or
Nonefor a model that has no Azure prompt cache. - may_
follow_ 🔒reasoning - Whether Azure accepts
nextimmediately after the reasoning itemreasoning. - replayable_
input_ 🔒message - One message a round just stored, as the next round should carry it, or
Nonefor a reasoning item Azure would reject: without anencrypted_contentpayload it cannot be resolved once responses are not stored Azure-side. - replayable_
input_ 🔒messages - A conversation’s stored messages as the request should replay them.