Skip to content

Commit

Permalink
flip back to main
Browse files Browse the repository at this point in the history
  • Loading branch information
dtam committed Oct 18, 2024
1 parent d5cd172 commit cfa7cf1
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion resources/generate-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ addMediaTypePlugin('text/plain', {

async function generateData () {

const manifestSchema = await bundleJsonSchema("https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/manifest.json");
const manifestSchema = await bundleJsonSchema("https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/manifest.json");
fs.mkdirSync('./build', { recursive: true });
fs.writeFileSync(resolve('./build/Manifest.json'), JSON.stringify(manifestSchema, null, 2))

Expand Down
2 changes: 1 addition & 1 deletion schemas/core/any-type.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "AnyType",
"anyOf": [
Expand Down
4 changes: 2 additions & 2 deletions schemas/core/args-and-kwargs.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/args-and-kwargs.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/args-and-kwargs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ArgsAndKwargs",
"type": "object",
"properties": {
"args": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
},
"kwargs": {
Expand Down
8 changes: 4 additions & 4 deletions schemas/core/call.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/call.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/call.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Call",
"type": "object",
Expand All @@ -11,7 +11,7 @@
"iterations": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/iteration.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/iteration.json"
},
"default": []
},
Expand All @@ -29,10 +29,10 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/inputs.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/inputs.json"
},
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/args-and-kwargs.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/args-and-kwargs.json"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion schemas/core/error-span.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/error-span.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/error-span.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ErrorSpan",
"type": "object",
Expand Down
8 changes: 4 additions & 4 deletions schemas/core/fail-result.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/fail-result.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/fail-result.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "FailResult",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-result.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-result.json"
}
],
"properties": {
Expand All @@ -16,12 +16,12 @@
"type": "string"
},
"fixValue": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
},
"errorSpans": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/error-span.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/error-span.json"

}
}
Expand Down
6 changes: 3 additions & 3 deletions schemas/core/guard.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/guard.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/guard.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Guard",
"type": "object",
Expand Down Expand Up @@ -29,7 +29,7 @@
"history": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/call.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/call.json"
},
"readOnly": true
}
Expand All @@ -44,7 +44,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/args-and-kwargs.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/args-and-kwargs.json"
}
],
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schemas/core/inputs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/inputs.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/inputs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Inputs",
"type": "object",
Expand Down
6 changes: 3 additions & 3 deletions schemas/core/iteration.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/iteration.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/iteration.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Iteration",
"type": "object",
Expand All @@ -17,10 +17,10 @@
"description": "The unique identifier for the Call that this iteration is a part of."
},
"inputs": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/inputs.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/inputs.json"
},
"outputs": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/outputs.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/outputs.json"
}
},
"required": [
Expand Down
14 changes: 7 additions & 7 deletions schemas/core/outputs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/outputs.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/outputs.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Outputs",
"type": "object",
Expand All @@ -23,7 +23,7 @@
{
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
}
]
Expand All @@ -34,7 +34,7 @@
"type": "string"
},
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/reask.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/reask.json"
},
{
"type": "object",
Expand All @@ -43,7 +43,7 @@
{
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
}
]
Expand All @@ -60,21 +60,21 @@
{
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
}
]
},
"reasks": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/reask.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/reask.json"
}
},
"validatorLogs": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validator-log.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validator-log.json"
}
},
"error": {
Expand Down
6 changes: 3 additions & 3 deletions schemas/core/pass-result.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/pass-result.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/pass-result.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "PassResult",
"type": "object",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-result.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-result.json"
}
],
"properties": {
"outcome": {
"const": "pass"
},
"valueOverride": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
},
"required": [
Expand Down
6 changes: 3 additions & 3 deletions schemas/core/reask.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/reask.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/reask.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ReAsk",
"type": "object",
"properties": {
"incorrectValue": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
},
"failResults": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/fail-result.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/fail-result.json"
}
}
},
Expand Down
8 changes: 4 additions & 4 deletions schemas/core/validation-outcome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-outcome.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-outcome.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ValidationOutcome",
"description": "The output from a Guard execution.",
Expand All @@ -16,7 +16,7 @@
"validationSummaries": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-summary.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-summary.json"
}
},
"validatedOutput": {
Expand All @@ -32,14 +32,14 @@
{
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
}
]
},
"reask": {
"description": "If validation continuously fails and all allocated reasks are used, this field will contain the final reask that would have been sent to the LLM if additional reasks were available.",
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/reask.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/reask.json"
},
"validationPassed": {
"description": "A boolean to indicate whether or not the LLM output passed validation. If this is False, the validated_output may be invalid.",
Expand Down
4 changes: 2 additions & 2 deletions schemas/core/validation-result.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-result.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-result.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ValidationResult",
"type": "object",
Expand All @@ -17,7 +17,7 @@
"additionalProperties": {}
},
"validatedChunk": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
}
},
"required": [
Expand Down
4 changes: 2 additions & 2 deletions schemas/core/validation-summary.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validation-summary.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validation-summary.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ValidationSummary",
"type": "object",
Expand Down Expand Up @@ -27,7 +27,7 @@
"errorSpans": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/error-span.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/error-span.json"
}
}
},
Expand Down
10 changes: 5 additions & 5 deletions schemas/core/validator-log.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/validator-log.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/validator-log.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "ValidatorLog",
"type": "object",
Expand Down Expand Up @@ -30,18 +30,18 @@
"description": "The JSON path to the property which was validated that produced this log."
},
"valueBeforeValidation": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
},
"valueAfterValidation": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/any-type.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/any-type.json"
},
"validationResult": {
"anyOf": [
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/pass-result.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/pass-result.json"
},
{
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/core/fail-result.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/core/fail-result.json"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion schemas/hub/contributor.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/contributor.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/contributor.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Contributor",
"type": "object",
Expand Down
12 changes: 6 additions & 6 deletions schemas/hub/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/manifest.json",
"$id": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/manifest.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Manifest",
"type": "object",
Expand All @@ -21,18 +21,18 @@
},
"author": {
"description": "The primary contact for the validator's git repository.",
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/contributor.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/contributor.json"
},
"maintainers": {
"description": "A list of all contacs for the validator's git repository.",
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/contributor.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/contributor.json"
}
},
"repository": {
"description": "The git repository that contains the source code for this validator.",
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/repository.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/repository.json"
},
"namespace": {
"type": "string",
Expand All @@ -56,7 +56,7 @@
"description": "The exports from the validator module; typically at least the validator's class name."
},
"tags": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/tags.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/tags.json"
},
"requiresAuth": {
"type": "boolean",
Expand Down Expand Up @@ -120,7 +120,7 @@
"requiredModelAuth": {
"type": "array",
"items": {
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/litellm_updates/schemas/hub/model-auth.json"
"$ref": "https://raw.githubusercontent.com/guardrails-ai/interfaces/main/schemas/hub/model-auth.json"
}
}
},
Expand Down
Loading

0 comments on commit cfa7cf1

Please sign in to comment.