Skip to content

Commit

Permalink
full updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Oct 17, 2024
1 parent cf9e957 commit 6a4d42e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
5 changes: 1 addition & 4 deletions schemas/core/guard.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,11 @@
"description": "The unique identifier for this Validator. Often the hub id; e.g. guardrails/regex_match"
},
"on": {
"description": "A reference to the property this validator should be applied against. Can be a valid JSON path or a meta-property such as \"prompt\" or \"output\"",
"description": "A reference to the property this validator should be applied against. Can be a valid JSON path or a meta-property such as \"messages\" or \"output\"",
"anyOf": [
{
"type": "string",
"enum": [
"prompt",
"instructions",
"msg_history",
"messages",
"output"
],
Expand Down
18 changes: 1 addition & 17 deletions schemas/core/inputs.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@
"type": "string",
"description": "The string output from an external LLM call provided by the user via Guard.parse."
},
"instructions": {
"type": "string",
"description": "The instructions for chat models."
},
"prompt": {
"type": "string",
"description": "The prompt for the LLM."
},
"msgHistory": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": {}
},
"description": "The message history for chat models."
},
"messages": {
"type": "array",
"items": {
Expand All @@ -39,7 +23,7 @@
"promptParams": {
"type": "object",
"additionalProperties": {},
"description": "Parameters to be formatted into the prompt."
"description": "Parameters to be formatted into the messages."
},
"numReasks": {
"type": "integer",
Expand Down

0 comments on commit 6a4d42e

Please sign in to comment.