turns
Typed inputs and outcomes for a server turn.
PersistWorkflow
dataclass
Save still-open workflow progress without sending a browser event.
Source code in chatkit/turns.py
19 20 21 22 23 24 | |
ClientToolLocalContinuation
Bases: BaseModel
Native model input to replay after a browser tool returns.
Source code in chatkit/turns.py
27 28 29 30 31 | |
ClientToolResponsesContinuation
Bases: BaseModel
New function outputs and their predecessor in OpenAI-managed context.
Source code in chatkit/turns.py
34 35 36 37 38 39 | |
ClientToolInvocation
Bases: BaseModel
Private execution record stored separately from the browser item.
Source code in chatkit/turns.py
48 49 50 51 52 53 54 55 56 57 58 59 60 | |
ClientToolRequest
dataclass
Ask the server to register a browser item and its private invocation.
Source code in chatkit/turns.py
63 64 65 66 67 68 69 70 71 | |
ApprovalRequired
dataclass
Private run checkpoint awaiting application review.
Source code in chatkit/turns.py
74 75 76 77 78 | |
UserMessageTurn
dataclass
A user message saved to a new or existing thread.
Source code in chatkit/turns.py
86 87 88 89 90 | |
ClientToolTurn
dataclass
A continuation after a client tool result was saved.
Source code in chatkit/turns.py
93 94 95 96 97 98 | |
StructuredInputTurn
dataclass
A continuation after a structured input was answered or skipped.
Source code in chatkit/turns.py
101 102 103 104 105 | |
RetryTurn
dataclass
A retry from an existing user message after removing later items.
Source code in chatkit/turns.py
108 109 110 111 112 | |
Turn
dataclass
A durable turn ID, thread snapshot, trigger, and request context.
Persist thread changes with an explicit patch.
Source code in chatkit/turns.py
118 119 120 121 122 123 124 125 126 127 128 | |
TurnOutcome
Bases: StrEnum
The result of processing a turn on the server.
Source code in chatkit/turns.py
131 132 133 134 135 136 137 138 | |
TurnState
Bases: StrEnum
Durable server milestones for one thread's turn.
Source code in chatkit/turns.py
141 142 143 144 145 146 147 148 149 150 151 | |