flo-ai icon indicating copy to clipboard operation
flo-ai copied to clipboard

[BUG] Validation for yaml agent building

Open vizsatiz opened this issue 1 year ago • 0 comments

Describe the bug Currently the yaml is directly compiled and executed for agentic flows. Instead add validations so that users can understand the problem with their yamls before execution

To Reproduce Steps to reproduce the behavior:

  1. Create a invalid yaml for example:
apiVersion: flo/alpha-v1
kind: **InValidKind**
name: banking-assistant
agent:
    name: HousingLoanTeamLead
    role: Housing Loan Specialist
    job: Fetch the housing loan information from the db and answer the question
    tools:
      - name: HousingLoanTool
  1. Try to build an execute

Expected behavior A clear error about what is supported and what is not, and what should be fixed in the yaml

eg: "Unsupported flo.kind: InValidKind"

vizsatiz avatar Aug 26 '24 10:08 vizsatiz