mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-05 08:06:15 +00:00
13 lines
396 B
Python
13 lines
396 B
Python
"""Defines the standardized data structure for model output responses."""
|
|
|
|
from typing import Any
|
|
|
|
from pydantic import Field, BaseModel
|
|
|
|
|
|
class Response(BaseModel):
|
|
"""Represents a structured response containing the execution result, status, and metadata."""
|
|
|
|
answer: str | Any = Field(default="")
|
|
success: bool = Field(default=True)
|
|
metadata: dict = Field(default_factory=dict)
|