autogen.agentchat.contrib.retrieve_user_proxy_agent.RetrieveUserProxyAgent
RetrieveUserProxyAgent
(In preview) The Retrieval-Augmented User Proxy retrieves document chunks based on the embedding similarity, and sends them along with the question to the Retrieval-Augmented Assistant
Parameters:Name | Description |
---|---|
**kwargs |
Class Attributes
DEFAULT_CONFIG
DEFAULT_SUMMARY_METHOD
DEFAULT_SUMMARY_PROMPT
DEFAULT_USER_PROXY_AGENT_DESCRIPTIONS
MAX_CONSECUTIVE_AUTO_REPLY
Instance Attributes
chat_messages
A dictionary of conversations from agent to list of messages.
code_executor
The code executor used by this agent. Returns None if code execution is disabled.
description
Get the description of the agent.
function_map
Return the function map.
name
Get the name of the agent.
system_message
Return the system message.
tools
Get the agent’s tools (registered for LLM)
Note this is a copy of the tools list, use add_tool and remove_tool to modify the tools list.
use_docker
Bool value of whether to use docker to execute the code, or str value of the docker image name to use, or None when code execution is disabled.
Instance Methods
a_check_termination_and_human_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_execute_function
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_generate_function_call_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_generate_init_message
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_generate_oai_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_generate_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_generate_tool_calls_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_get_human_input
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_initiate_chat
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_initiate_chats
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_receive
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_run
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
a_send
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
can_execute_function
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
chat_messages_for_summary
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
check_termination_and_human_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
clear_history
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
execute_code_blocks
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
execute_function
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_code_execution_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_function_call_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_init_message
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_oai_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
generate_tool_calls_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_actual_usage
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_chat_results
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_context
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_human_input
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_max_tokens
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
get_total_usage
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
initiate_chat
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
initiate_chats
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
last_message
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
max_consecutive_auto_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
message_generator
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
pop_context
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
print_usage_summary
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
process_all_messages_before_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
process_last_received_message
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
receive
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_for_execution
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_for_llm
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_function
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_hook
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_model_client
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_nested_chats
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
register_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
remove_tool_for_llm
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
replace_reply_func
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
reset
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
reset_consecutive_auto_reply_counter
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
retrieve_docs
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
run
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
run_code
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
send
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
set_context
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
stop_reply_at_receive
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_agent_state_before_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_context
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_function_signature
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_max_consecutive_auto_reply
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_system_message
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |
update_tool_signature
Call self as a function.
Parameters:Name | Description |
---|---|
*args | |
**kwargs |