mirror of
https://github.com/stablyai/orca.git
synced 2026-10-07 16:02:29 +00:00
docs(native-chat): two comments say what the settlement and a chat close now do
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ export function settleStructuredAgentSessionOutboxForClosedChat(
|
||||
if (!neverWentOut(entry)) {
|
||||
kept.push(entry)
|
||||
} else if (!(options.cancelledLaunch && entry.source === 'launch')) {
|
||||
// The draft holds the text before the notes it carried are cleared.
|
||||
// The draft holds the text first; a cancelled launch's notes come back, any other's are used.
|
||||
returnStructuredAgentSessionMessage(entry)
|
||||
endStructuredAgentSessionEntry(entry, options.cancelledLaunch ? 'discarded' : 'returned')
|
||||
}
|
||||
|
||||
@@ -137,7 +137,6 @@ function thrownSettlement(
|
||||
return context.firstAttempt ? returnedFor(failure) : stillSendingFor(failure)
|
||||
}
|
||||
|
||||
/** The host's answer to one attempt, as one of the three ends. */
|
||||
/** Whether the host itself answered: a refusal it returned or threw, or a code it turned the call
|
||||
* away with. Anything else is the transport, which says nothing about the host. */
|
||||
function answeredByHost(answer: StructuredAgentSessionSendAnswer): boolean {
|
||||
|
||||
Reference in New Issue
Block a user