Skip to content

Commit ce17838

Browse files
Merge pull request #2 from openai/victor/add-docstrings
add more docstrings
2 parents 36cd954 + aa7ec07 commit ce17838

File tree

3 files changed

+256
-60
lines changed

3 files changed

+256
-60
lines changed

chatkit/server.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,16 @@ def respond(
276276
input_user_message: UserMessageItem | None,
277277
context: TContext,
278278
) -> AsyncIterator[ThreadStreamEvent]:
279+
"""Stream `ThreadStreamEvent` instances for a new user message.
280+
281+
Args:
282+
thread: Metadata for the thread being processed.
283+
input_user_message: The incoming message the server should respond to, if any.
284+
context: Arbitrary per-request context provided by the caller.
285+
286+
Returns:
287+
An async iterator that yields events representing the server's response.
288+
"""
279289
pass
280290

281291
async def add_feedback( # noqa: B027

0 commit comments

Comments
 (0)