refactor(agent): drop AgentToolGroup for responses tools

This commit is contained in:
Ashwin Bharambe 2025-10-10 13:43:43 -07:00
parent c56b2deb7d
commit ce44b9d6f6
12 changed files with 4051 additions and 4225 deletions

View file

@ -12,12 +12,8 @@ import requests
from llama_stack_client import Agent, AgentEventLogger, Document
from llama_stack_client.types.shared_params.agent_config import AgentConfig, ToolConfig
from llama_stack.apis.agents.agents import (
AgentConfig as Server__AgentConfig,
)
from llama_stack.apis.agents.agents import (
ToolChoice,
)
from llama_stack.apis.agents.agents import AgentConfig as Server__AgentConfig
from llama_stack.apis.inference import ToolChoice
def get_boiling_point(liquid_name: str, celcius: bool = True) -> int:
@ -187,7 +183,7 @@ def test_tool_config(agent_config):
temperature=1.0,
top_p=0.9,
max_output_tokens=512,
toolgroups=[],
tools=[],
enable_session_persistence=False,
)
agent_config = AgentConfig(

View file

@ -74,7 +74,13 @@ def sample_agent_config():
max_output_tokens=0,
input_shields=["string"],
output_shields=["string"],
toolgroups=["mcp::my_mcp_server"],
tools=[
{
"type": "mcp",
"server_label": "my_mcp_server",
"server_url": "http://example.com/mcp",
}
],
client_tools=[
{
"type": "function",