mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-20 12:22:19 -06:00
Deprecate BuiltInCodeExecutionTool in favor of BuiltInCodeExecutor.
PiperOrigin-RevId: 758713057
This commit is contained in:
committed by
Copybara-Service
parent
b67182c50f
commit
22e4210b47
@@ -15,16 +15,16 @@
|
||||
import logging
|
||||
|
||||
from .base_code_executor import BaseCodeExecutor
|
||||
from .built_incode_executor import BuiltInCodeExecutor
|
||||
from .code_executor_context import CodeExecutorContext
|
||||
from .gemini_code_executor import GeminiCodeExecutor
|
||||
from .unsafe_local_code_executor import UnsafeLocalCodeExecutor
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
__all__ = [
|
||||
'BaseCodeExecutor',
|
||||
'BuiltInCodeExecutor',
|
||||
'CodeExecutorContext',
|
||||
'GeminiCodeExecutor',
|
||||
'UnsafeLocalCodeExecutor',
|
||||
]
|
||||
|
||||
|
||||
@@ -23,8 +23,12 @@ from .code_execution_utils import CodeExecutionInput
|
||||
from .code_execution_utils import CodeExecutionResult
|
||||
|
||||
|
||||
class GeminiCodeExecutor(BaseCodeExecutor):
|
||||
"""A code executor for Gemini 2.0+ models to exeute code."""
|
||||
class BuiltInCodeExecutor(BaseCodeExecutor):
|
||||
"""A code executor that uses the Model's built-in code executor.
|
||||
|
||||
Currently only supports Gemini 2.0+ models, but will be expanded to
|
||||
other models.
|
||||
"""
|
||||
|
||||
@override
|
||||
def execute_code(
|
||||
Reference in New Issue
Block a user