* use default values for non-required properties if a default is specified * generate client * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
23 lines
922 B
Python
23 lines
922 B
Python
from typing import List, Optional
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from ..models.output_file import OutputFile
|
|
|
|
|
|
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: str = ""
|
|
|
|
stdout: str = ""
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|