Versions
WorkflowAI agents are versioned automatically.
To show how versions work, let's create a new agent that can triage a customer question into different categories.
Running this agent for the first time will automatically create a new version of the agent on WorkflowAI.
A version is a specific configuration of an agent.
WorkflowAI defines two types of (agent) versions:
Major Versions
1, 2, 3, ...
A major version represents a specific configuration of a agent, including its instructions, temperature, descriptions/examples, and tools.
Minor Versions
1.1, 1.2, 1.3, ...
A minor version represents a major version associated with a specific model (e.g., OpenAI's GPT-4o-mini).
Now let's create another version of the agent, but this time we'll use a different model.
This will create a new minor version of the agent associated with the CLAUDE_3_5_HAIKU_LATEST
model.
Major Versions
Major versions are created when you change the instructions, temperature, descriptions/examples, or tools of an agent.
For example, let's change the instructions of the agent.
Versions from code, version id, or a deployment
WorkflowAI allows you to refer to a version of an agent from your code, a minor version id, or a deployment.
Versions from code
Setting a docstring or a model in the @workflowai.agent
decorator signals the client that the agent parameters are fixed and configured via code.
Versions from version id
Since WorkflowAI automatically saves all versions, you can refer to a minor version by its id.
Versions from a deployment
Deployments allow you to refer to a version of an agent's parameters from your code that's managed from WorkflowAI dashboard, allowing you to update the agent's parameters without changing your code.
Last updated
Was this helpful?