Skip to content

Commit a64f89f

Browse files
committed
feat: use "run" instead of "go" to invoke the agent response
1 parent a81c052 commit a64f89f

8 files changed

Lines changed: 9 additions & 9 deletions

File tree

BaseAgent/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ manager.select_libraries_by_names(["pandas", "numpy"])
271271
selected_tools = manager.get_selected_tools() # Returns only 2 tools
272272

273273
# In BaseAgent, tool retriever automatically manages selection:
274-
# agent.go("Analyze protein binding data")
274+
# agent.run("Analyze protein binding data")
275275
# -> Retriever selects relevant resources
276276
# -> ResourceManager marks them as selected=True
277277
# -> Prompt generation uses only selected resources

BaseAgent/base_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ def _select_resources_for_prompt(self, prompt: str) -> None:
719719
print(f"Selected {len(selected_tool_names)} tools, {len(selected_data_names)} data items, {len(selected_lib_names)} libraries")
720720

721721

722-
def go(self, prompt: str):
722+
def run(self, prompt: str):
723723
"""
724724
Execute the agent with the given prompt.
725725

examples/01_basic_usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
# Run a task
17-
result = agent.go("Analyze the dataset and create a visualization")
17+
result = agent.run("Analyze the dataset and create a visualization")
1818
print(result)
1919

2020
# Access usage metrics

examples/02_custom_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ def calculate_metrics(data: list, metric_type: str = "mean") -> float:
5858
)
5959

6060
# Use the agent with your custom tools
61-
result = agent.go("Search for proteins related to cancer and calculate the mean relevance")
61+
result = agent.run("Search for proteins related to cancer and calculate the mean relevance")
6262
print(result)
6363

examples/03_mcp_servers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
print(tool.name)
3131

3232
# Now you can use MCP server tools
33-
# result = agent.go("List all files in the directory and show their sizes")
33+
# result = agent.run("List all files in the directory and show their sizes")
3434
# print(result)
3535

examples/04_resource_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
print(f"Libraries: {summary['libraries']['total']}")
7171

7272
# Use the agent with custom resources
73-
result = agent.go("Analyze my_dataset.csv using custom_analysis_lib")
73+
result = agent.run("Analyze my_dataset.csv using custom_analysis_lib")
7474
print(f"\n=== Agent Result ===")
7575
print(result)
7676

examples/05_custom_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
)
2727

2828
# Run a task with custom configuration
29-
result = agent.go("Perform a complex multi-step analysis")
29+
result = agent.run("Perform a complex multi-step analysis")
3030
print(result)
3131

examples/06_tool_retrieval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515

1616
# The agent will automatically determine which tools are needed
17-
result = agent.go(
17+
result = agent.run(
1818
"Analyze protein sequences, calculate binding affinities, "
1919
"and create a visualization of the results"
2020
)
@@ -28,6 +28,6 @@
2828
])
2929

3030
# Only selected tools will be available for this task
31-
result = agent.go("Run a Python analysis on the data")
31+
result = agent.run("Run a Python analysis on the data")
3232
print(result)
3333

0 commit comments

Comments
 (0)