Assistants V2
New Features
- Temperature and Top P Controls: Set the
temperature
and thetop_p
parameter in theAgent
orAgency
class, with Agent settings taking precedence. - Max Token Controls: Configure
max_prompt_tokens
,max_completion_tokens
, andtruncation_strategy
in either theAgent
orAgency
class, with Agent settings taking precedence. - JSON Mode: Configure the response format by setting the
response_format
parameter in the Agent class. - Tool Choice: Select the tool to be used in the
get_completion
methods. - Few-Shot Examples: Add examples to the agent to fine-tune its responses. For more details, refer to the documentation.
- File Search: The
Retrieval
tool has been replaced by theFileSearch
tool by default. Initialize an agent to create a vector store if one does not already exist. To delete a vector store and all associated files, useagent.delete()
oragency.delete()
methods. - Enhanced Genesis Agency: Enhanced genesis agency to accommodate new features. Upgraded
ToolCreator
agent'sCreateTool
with a more robust architecture.
Full Changelog: View Changelog