Spaces:
Running
Running
Download toolkit/contracts/request.schema.json from Giuliocc/tacitus-source-lab: direct link, hf CLI and curl.
- Browser
- Download file 2.64 kB
-
https://huggingface.co/spaces/Giuliocc/tacitus-source-lab/resolve/main/toolkit/contracts/request.schema.json
- Command line
-
hf download hf://spaces/Giuliocc/tacitus-source-lab/toolkit/contracts/request.schema.json
-
curl -L -o request.schema.json https://huggingface.co/spaces/Giuliocc/tacitus-source-lab/resolve/main/toolkit/contracts/request.schema.json
2.64 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "TACITUS request", | |
| "type": "object", | |
| "required": [ | |
| "task", | |
| "text" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "task": { | |
| "enum": [ | |
| "evidence", | |
| "actors", | |
| "events" | |
| ] | |
| }, | |
| "text": { | |
| "type": "string", | |
| "minLength": 1, | |
| "maxLength": 12000 | |
| }, | |
| "claim": { | |
| "type": "string", | |
| "minLength": 1, | |
| "maxLength": 1500 | |
| }, | |
| "include_participants": { | |
| "type": "boolean" | |
| }, | |
| "trigger": { | |
| "type": "object", | |
| "required": [ | |
| "start", | |
| "end", | |
| "event_type" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "start": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "end": { | |
| "type": "integer", | |
| "minimum": 1 | |
| }, | |
| "event_type": { | |
| "enum": [ | |
| "Attack", | |
| "Arrest", | |
| "Military_operation", | |
| "Protest", | |
| "Request", | |
| "Sign_agreement", | |
| "Supporting", | |
| "Surrendering" | |
| ] | |
| } | |
| } | |
| } | |
| }, | |
| "allOf": [ | |
| { | |
| "if": { | |
| "properties": { | |
| "task": { | |
| "const": "evidence" | |
| } | |
| } | |
| }, | |
| "then": { | |
| "required": [ | |
| "claim" | |
| ], | |
| "not": { | |
| "anyOf": [ | |
| { | |
| "required": [ | |
| "trigger" | |
| ] | |
| }, | |
| { | |
| "required": [ | |
| "include_participants" | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "if": { | |
| "properties": { | |
| "task": { | |
| "const": "actors" | |
| } | |
| } | |
| }, | |
| "then": { | |
| "properties": { | |
| "text": { | |
| "maxLength": 8000 | |
| } | |
| }, | |
| "not": { | |
| "anyOf": [ | |
| { | |
| "required": [ | |
| "claim" | |
| ] | |
| }, | |
| { | |
| "required": [ | |
| "include_participants" | |
| ] | |
| }, | |
| { | |
| "required": [ | |
| "trigger" | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| { | |
| "if": { | |
| "properties": { | |
| "task": { | |
| "const": "events" | |
| } | |
| } | |
| }, | |
| "then": { | |
| "properties": { | |
| "text": { | |
| "maxLength": 5000 | |
| } | |
| }, | |
| "not": { | |
| "required": [ | |
| "claim" | |
| ] | |
| } | |
| } | |
| } | |
| ] | |
| } | |