Skip to content

ThreadSampleResponse

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  3498395987["v2_protocol.ThreadSampleResponse"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 3498395987
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Source code in src/codexed/models/v2_protocol.py
class ThreadSampleResponse(CodexBaseModel):
    cached_input_tokens: int | None = None
    input_tokens: int | None = None
    output_tokens: int | None = None
    response_id: str
    source_turn_id: str
    text: str | None = None
    """
    Assistant text from the response, or null if it attempted a tool call or completed without text.
    """

text class-attribute instance-attribute

text: str | None = None

Assistant text from the response, or null if it attempted a tool call or completed without text.

:fa-brands-github: Show source on GitHub