mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-25 22:47: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
@@ -19,6 +19,7 @@ import string
|
||||
from typing import Optional
|
||||
|
||||
from google.genai import types
|
||||
from pydantic import alias_generators
|
||||
from pydantic import ConfigDict
|
||||
from pydantic import Field
|
||||
|
||||
@@ -46,7 +47,11 @@ class Event(LlmResponse):
|
||||
"""
|
||||
|
||||
model_config = ConfigDict(
|
||||
extra='forbid', ser_json_bytes='base64', val_json_bytes='base64'
|
||||
extra='forbid',
|
||||
ser_json_bytes='base64',
|
||||
val_json_bytes='base64',
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import Optional
|
||||
|
||||
from pydantic import alias_generators
|
||||
from pydantic import BaseModel
|
||||
from pydantic import ConfigDict
|
||||
from pydantic import Field
|
||||
@@ -26,7 +27,11 @@ from ..auth.auth_tool import AuthConfig
|
||||
class EventActions(BaseModel):
|
||||
"""Represents the actions attached to an event."""
|
||||
|
||||
model_config = ConfigDict(extra='forbid')
|
||||
model_config = ConfigDict(
|
||||
extra='forbid',
|
||||
alias_generator=alias_generators.to_camel,
|
||||
populate_by_name=True,
|
||||
)
|
||||
"""The pydantic model config."""
|
||||
|
||||
skip_summarization: Optional[bool] = None
|
||||
|
||||
Reference in New Issue
Block a user