增加模型信息的记录入库字段

This commit is contained in:
zhaoawd
2025-11-14 00:58:29 +08:00
parent a72ca3593e
commit 368ffaaaae
3 changed files with 26 additions and 0 deletions

View File

@ -254,6 +254,18 @@ class TableSnippetUpsertRequest(BaseModel):
callback_url: HttpUrl = Field(..., description="Callback URL associated with the action run.")
table_schema_version_id: int = Field(..., ge=0, description="Identifier for the schema snapshot.")
table_schema: Any = Field(..., description="Schema snapshot payload for the table.")
model: Optional[str] = Field(
None,
description="LLM model identifier (can be provider alias) used for this action, when applicable.",
)
model_provider: Optional[str] = Field(
None,
description="LLM provider responsible for executing the action's model.",
)
model_params: Optional[Dict[str, Any]] = Field(
None,
description="Optional model parameter overrides (e.g., temperature) associated with the action.",
)
llm_usage: Optional[Any] = Field(
None,
description="Optional token usage metrics reported by the LLM provider.",