Versions
from typing import Literal
from pydantic import BaseModel
import workflowai
class Input(BaseModel):
question: str
class Output(BaseModel):
category: Literal["billing", "technical", "account", "other"]
@workflowai.agent(id="triage-agent")
async def triage_question(input: Input) -> Output:
"""
Triage a customer question into different categories.
"""
...
await triage_question.run(Input(question="How do I change my billing information?"))
Version Type
Example
Description

Major Versions

Versions from code, version id, or a deployment
Versions from code
Versions from version id
Versions from a deployment
Last updated