record_one_conversation
:step()
:step()
is the core method of AgentOptimizer.
At each optimization iteration, it will return two fields register_for_llm and register_for_executor, which are subsequently utilized to update the assistant and UserProxy agents, respectively.
reset_optimizer
:add_function
, remove_function
, and revise_function
.
These calls add, remove, and revise functions in the existing function list, respectively.
This practice could fully leverage the function calling capabilities of GPT-4 and output structured functions with more stable signatures and code implementation.
Below is the JSON schema of these function calls:
add_function
: Add one new function that may be used in the future tasks.revise_function
: Revise one existing function (code implementation, function signature) in the current function list according to the conversation history and performance.remove_function
: Remove one existing function in the current function list. It is used to remove the functions that are not useful (redundant) in the future tasks.