mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
remove memory from available tools to agent
This commit is contained in:
parent
e3775eb6f6
commit
ba242c04cc
1 changed files with 5 additions and 1 deletions
|
@ -482,7 +482,11 @@ class ChatAgent(ShieldRunnerMixin):
|
||||||
async for chunk in await self.inference_api.chat_completion(
|
async for chunk in await self.inference_api.chat_completion(
|
||||||
self.agent_config.model,
|
self.agent_config.model,
|
||||||
input_messages,
|
input_messages,
|
||||||
tools=[tool for tool in tool_defs.values()],
|
tools=[
|
||||||
|
tool
|
||||||
|
for tool in tool_defs.values()
|
||||||
|
if tool.tool_name != "memory"
|
||||||
|
],
|
||||||
tool_prompt_format=self.agent_config.tool_prompt_format,
|
tool_prompt_format=self.agent_config.tool_prompt_format,
|
||||||
stream=True,
|
stream=True,
|
||||||
sampling_params=sampling_params,
|
sampling_params=sampling_params,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue