Client application for agents · Question 8 of 12
Which AIProjectClient method creates an agent or a new version of it?
1 answer is correct. Easy Created with AI
Show answer
Answer
- B agents.create_version()
Explanation
project.agents.create_version() creates an agent with a name and definition, for example a PromptAgentDefinition with model and instructions. If the agent already exists, a new version is created. Threads belong to the older agent model.