Refactor XMLAgentComponent.render_tool_description() method
This commit is contained in:
parent
6be88c6b0b
commit
26612b643d
1 changed files with 1 additions and 6 deletions
|
|
@ -78,12 +78,7 @@ class XMLAgentComponent(CustomComponent):
|
|||
|
||||
def render_tool_description(tools):
|
||||
return "\n".join(
|
||||
[
|
||||
tool_template.format(
|
||||
name=tool.name, description=tool.description, args_schema=tool.args_schema, args=tool.args
|
||||
)
|
||||
for tool in tools
|
||||
]
|
||||
[tool_template.format(name=tool.name, description=tool.description, args=tool.args) for tool in tools]
|
||||
)
|
||||
|
||||
prompt_template = PromptTemplate.from_template(prompt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue