File tree Expand file tree Collapse file tree
contributing/samples/tools/pydantic_argument Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818from typing import Union
1919
2020from google .adk .agents .llm_agent import Agent
21- from google .adk .features import FeatureName
22- from google .adk .features import override_feature_enabled
2321from google .adk .tools .function_tool import FunctionTool
2422import pydantic
2523
26- override_feature_enabled (
27- FeatureName .JSON_SCHEMA_FOR_FUNC_DECL ,
28- True ,
29- )
30-
3124
3225class UserProfile (pydantic .BaseModel ):
3326 """A user's profile information."""
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class FeatureConfig:
135135 FeatureStage .EXPERIMENTAL , default_on = True
136136 ),
137137 FeatureName .JSON_SCHEMA_FOR_FUNC_DECL : FeatureConfig (
138- FeatureStage .EXPERIMENTAL , default_on = False
138+ FeatureStage .EXPERIMENTAL , default_on = True
139139 ),
140140 FeatureName ._MCP_GRACEFUL_ERROR_HANDLING : FeatureConfig (
141141 FeatureStage .EXPERIMENTAL , default_on = True
You can’t perform that action at this time.
0 commit comments