Skip to main content

agentchat.contrib.tool_retriever

ToolBuilder

class ToolBuilder()

bind

def bind(agent: AssistantAgent, functions: str)

Binds the function to the agent so that agent is aware of it.

bind_user_proxy

def bind_user_proxy(agent: UserProxyAgent, tool_root: str)

Updates user proxy agent with a executor so that code executor can successfully execute function-related code. Returns an updated user proxy.

get_full_tool_description

def get_full_tool_description(py_file)

Retrieves the function signature for a given Python file.

find_callables

def find_callables(directory)

Find all callable objects defined in Python files within the specified directory.