mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2026-02-04 22:06:23 -06:00
chore: Updates model_config docstring to explicitly mentioning pydantic.
This is to disambiguate between pydantic model and LLM. PiperOrigin-RevId: 754981617
This commit is contained in:
committed by
Copybara-Service
parent
a930633fad
commit
dbea793cf5
@@ -30,6 +30,7 @@ class ActiveStreamingTool(BaseModel):
|
||||
arbitrary_types_allowed=True,
|
||||
extra='forbid',
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
task: Optional[asyncio.Task] = None
|
||||
"""The active task of this streaming tool."""
|
||||
|
||||
@@ -50,6 +50,7 @@ class BaseAgent(BaseModel):
|
||||
arbitrary_types_allowed=True,
|
||||
extra='forbid',
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
name: str
|
||||
"""The agent's name.
|
||||
|
||||
@@ -110,6 +110,7 @@ class InvocationContext(BaseModel):
|
||||
arbitrary_types_allowed=True,
|
||||
extra="forbid",
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
artifact_service: Optional[BaseArtifactService] = None
|
||||
session_service: BaseSessionService
|
||||
|
||||
@@ -53,6 +53,7 @@ class LangGraphAgent(BaseAgent):
|
||||
model_config = ConfigDict(
|
||||
arbitrary_types_allowed=True,
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
graph: CompiledGraph
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ class LiveRequest(BaseModel):
|
||||
"""Request send to live agents."""
|
||||
|
||||
model_config = ConfigDict(ser_json_bytes='base64', val_json_bytes='base64')
|
||||
"""The pydantic model config."""
|
||||
|
||||
content: Optional[types.Content] = None
|
||||
"""If set, send the content to the model in turn-by-turn mode."""
|
||||
|
||||
@@ -37,6 +37,7 @@ class RunConfig(BaseModel):
|
||||
model_config = ConfigDict(
|
||||
extra='forbid',
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
speech_config: Optional[types.SpeechConfig] = None
|
||||
"""Speech configuration for the live agent."""
|
||||
|
||||
@@ -26,6 +26,7 @@ class TranscriptionEntry(BaseModel):
|
||||
arbitrary_types_allowed=True,
|
||||
extra='forbid',
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
role: str
|
||||
"""The role that created this data, typically "user" or "model"""
|
||||
|
||||
Reference in New Issue
Block a user