Files
kittycad.py/kittycad/models/code_output.py

27 lines
1.1 KiB
Python
Raw Normal View History

import datetime
from typing import Any, Dict, List, Literal, Optional, Union
from uuid import UUID
from pydantic import AnyUrl, Base64Bytes, BaseModel, ConfigDict
from pydantic_extra_types.phone_numbers import PhoneNumber
from ..models.output_file import OutputFile
from .base64data import Base64Data
class CodeOutput(BaseModel):
"""Output of the code being executed.
<details><summary>JSON schema</summary>
```json { \"description\": \"Output of the code being executed.\", \"type\": \"object\", \"properties\": { \"output_files\": { \"description\": \"The contents of the files requested if they were passed.\", \"type\": \"array\", \"items\": { \"$ref\": \"#/components/schemas/OutputFile\" } }, \"stderr\": { \"description\": \"The stderr of the code.\", \"default\": \"\", \"type\": \"string\" }, \"stdout\": { \"description\": \"The stdout of the code.\", \"default\": \"\", \"type\": \"string\" } } } ``` </details>
"""
output_files: Optional[List[OutputFile]] = None
stderr: Optional[str] = None
stdout: Optional[str] = None
model_config = ConfigDict(protected_namespaces=())