ToolBuilder
autogen.agentchat.contrib.captainagent.ToolBuilder #
Source code in autogen/agentchat/contrib/captainagent/tool_retriever.py
TOOL_PROMPT_DEFAULT class-attribute
instance-attribute
#
TOOL_PROMPT_DEFAULT = "\n## Functions\nYou have access to the following functions. They can be accessed from the module called 'functions' by their function names.\nFor example, if there is a function called `foo` you could import it by writing `from functions import foo`\n{functions}\n"
TOOL_PROMPT_USER_DEFINED class-attribute
instance-attribute
#
TOOL_PROMPT_USER_DEFINED = '\n## Functions\nYou have access to the following functions. You can write python code to call these functions directly without importing them.\n{functions}\n'
retrieve #
Source code in autogen/agentchat/contrib/captainagent/tool_retriever.py
bind #
Binds the function to the agent so that agent is aware of it.
Source code in autogen/agentchat/contrib/captainagent/tool_retriever.py
bind_user_proxy #
Updates user proxy agent with a executor so that code executor can successfully execute function-related code. Returns an updated user proxy.