2323
2424
2525class AnnotationDocumentCitation (BaseModel ):
26+ """A citation referencing a specific document that was provided in the request."""
27+
2628 document_id : str
2729 """
2830 The ID of the document being cited, corresponding to a document provided in the
@@ -37,6 +39,8 @@ class AnnotationDocumentCitation(BaseModel):
3739
3840
3941class AnnotationFunctionCitation (BaseModel ):
42+ """A citation referencing the result of a function or tool call."""
43+
4044 end_index : int
4145 """The character index in the message content where this citation ends."""
4246
@@ -51,6 +55,8 @@ class AnnotationFunctionCitation(BaseModel):
5155
5256
5357class Annotation (BaseModel ):
58+ """An annotation that provides citations or references for content in a message."""
59+
5460 type : Literal ["document_citation" , "function_citation" ]
5561 """The type of annotation."""
5662
@@ -181,6 +187,8 @@ class ExecutedToolSearchResultsResult(BaseModel):
181187
182188
183189class ExecutedToolSearchResults (BaseModel ):
190+ """The search results returned by the tool, if applicable."""
191+
184192 images : Optional [List [str ]] = None
185193 """List of image URLs returned by the search"""
186194
@@ -212,6 +220,11 @@ class ExecutedTool(BaseModel):
212220
213221
214222class FunctionCall (BaseModel ):
223+ """Deprecated and replaced by `tool_calls`.
224+
225+ The name and arguments of a function that should be called, as generated by the model.
226+ """
227+
215228 arguments : str
216229 """
217230 The arguments to call the function with, as generated by the model in JSON
@@ -225,6 +238,8 @@ class FunctionCall(BaseModel):
225238
226239
227240class ChatCompletionMessage (BaseModel ):
241+ """A chat completion message generated by the model."""
242+
228243 content : Optional [str ] = None
229244 """The contents of the message."""
230245
0 commit comments