Skip to content

Commit 56f5641

Browse files
google-genai-botcopybara-github
authored andcommitted
fix: Disable JSON_SCHEMA_FOR_FUNC_DECL by default
PiperOrigin-RevId: 926912698
1 parent 8b564f5 commit 56f5641

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

contributing/samples/tools/pydantic_argument/agent.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,9 @@
1818
from typing import Union
1919

2020
from google.adk.agents.llm_agent import Agent
21-
from google.adk.features import FeatureName
22-
from google.adk.features import override_feature_enabled
2321
from google.adk.tools.function_tool import FunctionTool
2422
import pydantic
2523

26-
override_feature_enabled(
27-
FeatureName.JSON_SCHEMA_FOR_FUNC_DECL,
28-
True,
29-
)
30-
3124

3225
class UserProfile(pydantic.BaseModel):
3326
"""A user's profile information."""

src/google/adk/features/_feature_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)