Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Remove weather tool and the custom system instructions (#231)
Jaana Dogan0088d37d8078
diff --git a/manifests/README.md b/manifests/README.mdindex 1e193d4..0b1b152 100644--- a/manifests/README.md+++ b/manifests/README.md@@ -73,20 +73,19 @@ kubectl port-forward -n ax rs/ax-server 8494:8494### 3. Test End-to-End-Run an execution targeting the port-forwarded server. The default `antigravity`-harness has an embedded weather agent that exposes a `get_weather` tool.+Run an execution targeting the port-forwarded server.```bash-ax exec --server=localhost:8494 --input="what's the weather in NYC?"+ax exec --server=localhost:8494 --input="hello, who are you?"```The server should respond with something like:```textConversation: fb344a18-3720-4c4f-8a6e-2ce34db975b3-⏺ what's the weather in NYC?+⏺ hello, who are you?-The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit).+I am a helpful assistant. How can I help you today?```*The request is served by the antigravity harness actor running on Substrate.*diff --git a/python/antigravity/config.json b/python/antigravity/config.jsonindex 2d97165..9f78bbb 100644--- a/python/antigravity/config.json+++ b/python/antigravity/config.json@@ -1,4 +1,3 @@{- "system_instructions": "You are a friendly weather assistant. Use the get_weather tool and reply in one upbeat sentence. If possible, include emojis in your response.","model": "gemini-3.1-pro-preview"}\ No newline at end of filediff --git a/python/antigravity/harness_server.py b/python/antigravity/harness_server.pyindex 5c9ef2d..37bab59 100644--- a/python/antigravity/harness_server.py+++ b/python/antigravity/harness_server.py@@ -37,25 +37,7 @@ from python.proto import content_pb2from google.antigravity import Agent, AgentConfig, LocalAgentConfigfrom google.antigravity.types import Text, Thought, ToolCall-# 1. Define the custom weather tool-def get_weather(city: str) -> str:- """Retrieves the current weather report for a specified city.- Args:- city (str): The name of the city for which to retrieve the weather report.-- Returns:- str: Weather report status and details.- """- sys.stderr.write(f"\n[PYTHON TOOL get_weather executed for city: {city}]\n")- sys.stderr.flush()- c = city.lower()- if "new york" in c or "nyc" in c:- return "The weather in New York is sunny with a temperature of 25 degrees Celsius (77 degrees Fahrenheit)."- elif "san francisco" in c or "sf" in c:- return "The weather in San Francisco is foggy with a temperature of 16 degrees Celsius (60.8 degrees Fahrenheit)."- else:- return f"Weather information for '{city}' is not available."class VertexKwargs(TypedDict, total=False):"""Typed subset of LocalAgentConfig kwargs needed to enable Vertex AI.@@ -119,8 +101,7 @@ def _build_default_config() -> LocalAgentConfig:this config."""return LocalAgentConfig(- system_instructions="You are a helpful agent. Use the get_weather tool to answer weather questions.",- tools=[get_weather],+ system_instructions="You are a helpful agent.",**_vertex_kwargs_from_env(),)