2023-11-28 23:50:50 -08:00
|
|
|
from typing import List, Optional
|
2022-04-06 22:41:11 -07:00
|
|
|
|
2024-01-06 18:32:21 -08:00
|
|
|
from pydantic import BaseModel, ConfigDict
|
2022-04-06 22:41:11 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
from ..models.output_file import OutputFile
|
2022-04-06 22:41:11 -07:00
|
|
|
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
class CodeOutput(BaseModel):
|
|
|
|
"""Output of the code being executed."""
|
2022-04-06 22:41:11 -07:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
output_files: Optional[List[OutputFile]] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
stderr: Optional[str] = None
|
2023-11-27 16:01:20 -08:00
|
|
|
|
2023-11-28 23:50:50 -08:00
|
|
|
stdout: Optional[str] = None
|
2024-01-06 18:32:21 -08:00
|
|
|
|
|
|
|
model_config = ConfigDict(protected_namespaces=())
|