You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should we use the same namespace for locals and globals in UnsafeLocalCodeExecutor? #295
coding_agent = Agent(
name = "coding_agent",
description = "Agent for handling coding requests",
model = "gemini-2.0-flash",
instruction="""You are a coding agent. You can execute code to help users answers some simple questions.""",
code_executor=UnsafeLocalCodeExecutor(),
# planner=PlanReActPlanner(),
# planner=BuiltInPlanner(thinking_config=types.ThinkingConfig(includeThoughts=True)),
output_key="code_output"
)
Because of separate locals() and globals(), the below code returned by LLM fails
Activity
seanzhou1023 commentedon Jul 25, 2025
should be fixed by #869