ToolBuilder(
corpus_root,
retriever='all-mpnet-base-v2',
type='default'
)
Parameters:
Name | Description |
---|
corpus_root | |
retriever='all-mpnet-base-v2' | |
type='default' | |
Class Attributes
Instance Methods
bind(
self,
agent:Â AssistantAgent,
functions:Â str
) ->
Binds the function to the agent so that agent is aware of it.
Parameters:
bind_user_proxy
bind_user_proxy(
self,
agent:Â UserProxyAgent,
tool_root: str | list
) ->
Updates user proxy agent with a executor so that code executor can successfully execute function-related code.
Returns an updated user proxy.
Parameters:
retrieve
retrieve(
self,
query,
top_k=3
) ->
Parameters:
Name | Description |
---|
query | |
top_k=3 | |