Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a regex expression validation for required fields. #185

Open
Deep-Blue-2013 opened this issue Oct 20, 2023 · 0 comments
Open

Add a regex expression validation for required fields. #185

Deep-Blue-2013 opened this issue Oct 20, 2023 · 0 comments

Comments

@Deep-Blue-2013
Copy link
Collaborator

Sometimes LLM will hallucinate and simulate a value that does not exist. For example, it fills in a false value in the order number below. I want a user-defined validator that can validate the data format in advance.

{ "function": "route_to_agent",
  "reason": "User wants to pay in cash",
  "next_action_agent": "Payment",
  "user_goal_agent": "Payment",
  "args": {
    "order_number": "order number"
  }
}

Below is part of the Router prompt:

* Agent: Payment
Make payment when user wants to pay for the order
Required args: {
    "order_number": "order number",
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant