dograh/api/schemas/workflow.py
Abhay Babbar 98d2b24cba
Add Sarvam LLM, update Sarvam STT models, expose usage_info on run detail (#351)
* Add Sarvam LLM provider, update Sarvam STT models, expose usage_info on run detail.
Depends on pipecat PR dograh-hq/pipecat#43 for STT string language support.
Submodule bump will follow after that merges.

* test: cover Sarvam STT language mapping; link Sarvam docs

---------

Co-authored-by: Sabiha Khan <sabihak89@gmail.com>
2026-06-01 10:29:31 +05:30

28 lines
811 B
Python

from datetime import datetime
from typing import Any, Dict
from pydantic import BaseModel
from api.enums import CallType
class WorkflowRunResponseSchema(BaseModel):
id: int
workflow_id: int
name: str
mode: str
created_at: datetime
is_completed: bool
transcript_url: str | None
recording_url: str | None
transcript_public_url: str | None = None
recording_public_url: str | None = None
public_access_token: str | None = None
cost_info: Dict[str, Any] | None
usage_info: Dict[str, Any] | None = None
definition_id: int | None # This is for backward compatibility
initial_context: dict | None = None
gathered_context: dict | None = None
call_type: CallType
logs: Dict[str, Any] | None = None
annotations: Dict[str, Any] | None = None