Public declaration syntax from forge-py/src/forge/core/output.py Original source SHA-256: e989eae23d455fc1de5cc331ba256be4ac4b62ca639ec97d541f42e5da0e861f Function bodies and constant values are omitted. This is not the complete implementation. Source line 17 class FinishReason(Enum) Source line 34 def is_complete(self) -> bool Source line 42 def is_tool_call(self) -> bool Source line 56 class Usage() Source line 70 def zero() -> Usage Source line 78 def add(self, other: Usage) -> Usage Source line 93 def to_dict(self) -> dict[str, int] Source line 106 def from_dict(data: dict[str, Any]) -> Usage Source line 121 def to_json(self) -> str Source line 126 def from_json(data: str) -> Usage Source line 132 class GenerateResult() Source line 148 def text(self) -> str Source line 156 def has_tool_calls(self) -> bool Source line 164 def to_dict(self) -> dict[str, Any] Source line 177 def from_dict(data: dict[str, Any]) -> GenerateResult Source line 192 def to_json(self) -> str Source line 197 def from_json(data: str) -> GenerateResult Source line 206 class TextDelta() Source line 216 def as_text(self) -> str | None Source line 226 class ToolCallDelta() Source line 242 def as_text(self) -> str | None Source line 252 class StreamDone() Source line 264 def as_text(self) -> str | None Source line 276 def stream_chunk_text_delta(text: str) -> TextDelta Source line 288 def stream_chunk_done(finish_reason: FinishReason, usage: Usage) -> StreamDone Source line 301 def is_text_delta(chunk: StreamChunk) -> bool Source line 313 def is_done(chunk: StreamChunk) -> bool Source line 325 def stream_chunk_to_dict(chunk: StreamChunk) -> dict[str, Any] Source line 354 def stream_chunk_from_dict(data: dict[str, Any]) -> StreamChunk