mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-23 21:57:44 -06:00
chore: Migrate json field names to camelCase (4/4)
PiperOrigin-RevId: 758423361
This commit is contained in:
committed by
Copybara-Service
parent
931fb338f8
commit
d6cf660506
@@ -17,6 +17,7 @@ from __future__ import annotations
|
||||
from typing import Any, Optional
|
||||
|
||||
from google.genai import types
|
||||
from pydantic import alias_generators
|
||||
from pydantic import BaseModel
|
||||
from pydantic import ConfigDict
|
||||
|
||||
@@ -40,7 +41,11 @@ class LlmResponse(BaseModel):
|
||||
custom_metadata: The custom metadata of the LlmResponse.
|
||||
"""
|
||||
|
||||
model_config = ConfigDict(extra='forbid')
|
||||
model_config = ConfigDict(
|
||||
extra='forbid',
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
content: Optional[types.Content] = None
|
||||
|
||||
Reference in New Issue
Block a user