ChatFilesActionRequestFilesInner

pydantic model openapi_client.models.chat_files_action_request_files_inner.ChatFilesActionRequestFilesInner

ChatFilesActionRequestFilesInner

Fields:
field file_name: StrictStr [Required] (alias 'FileName')

Name of the file.

Constraints:
  • strict = True

field chat_id: Optional[StrictStr] = None (alias 'ChatId')

Chat that owns the file. Use global for global files. Defaults to the user’s global files when omitted and ProjectId is not set.

field thread_id: Optional[StrictStr] = None (alias 'ThreadId')

Alias for ChatId when ChatId is omitted (project threads).

field project_id: Optional[StrictStr] = None (alias 'ProjectId')

When set (not N/A), resolves the file from that project’s files.

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of ChatFilesActionRequestFilesInner from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of ChatFilesActionRequestFilesInner from a dict

Return type:

Optional[Self]