$echo '{
< "request": {
< "task_contract": {
< "goal_id": "sentiment-score/v1",
< "input_schema": {
< "type": "object",
< "properties": {
< "text": {
< "type": "string",
< "minLength": 1,
< "maxLength": 100
< }
< },
< "required": [
< "text"
< ],
< "additionalProperties": false
< },
< "output_schema": {
< "type": "object",
< "properties": {
< "score": {
< "type": "number",
< "minimum": 0,
< "maximum": 1
< }
< },
< "required": [
< "score"
< ],
< "additionalProperties": false
< },
< "output_semantics": {
< "score": "positive_sentiment_probability/v1"
< },
< "allowed_side_effects": [],
< "invariants": [
< {
< "id": "bounded-score",
< "field": "score",
< "constraint": {
< "type": "number",
< "minimum": 0,
< "maximum": 1
< }
< }
< ],
< "comparison_fields": [
< "score"
< ],
< "minimum_fixtures": 2
< },
< "incumbent_capability": {
< "id": "provider-a/v1",
< "goal_id": "sentiment-score/v1",
< "input_schema": {
< "type": "object",
< "properties": {
< "text": {
< "type": "string",
< "minLength": 1,
< "maxLength": 100
< }
< },
< "required": [
< "text"
< ],
< "additionalProperties": false
< },
< "output_schema": {
< "type": "object",
< "properties": {
< "score": {
< "type": "number",
< "minimum": 0,
< "maximum": 1
< }
< },
< "required": [
< "score"
< ],
< "additionalProperties": false
< },
< "output_semantics": {
< "score": "positive_sentiment_probability/v1"
< },
< "side_effects": []
< },
< "candidate_capability": {
< "id": "provider-b/v1",
< "goal_id": "sentiment-score/v1",
< "input_schema": {
< "type": "object",
< "properties": {
< "text": {
< "type": "string",
< "minLength": 1,
< "maxLength": 100
< }
< },
< "required": [
< "text"
< ],
< "additionalProperties": false
< },
< "output_schema": {
< "type": "object",
< "properties": {
< "score": {
< "type": "number",
< "minimum": 0,
< "maximum": 1
< }
< },
< "required": [
< "score"
< ],
< "additionalProperties": false
< },
< "output_semantics": {
< "score": "positive_sentiment_probability/v1"
< },
< "side_effects": []
< },
< "fixtures": [
< {
< "id": "positive",
< "input": {
< "text": "good"
< },
< "incumbent_output": {
< "score": 0.9
< },
< "candidate_output": {
< "score": 0.9
< },
< "incumbent_side_effects": [],
< "candidate_side_effects": []
< },
< {
< "id": "negative",
< "input": {
< "text": "bad"
< },
< "incumbent_output": {
< "score": 0.1
< },
< "candidate_output": {
< "score": 0.1
< },
< "incumbent_side_effects": [],
< "candidate_side_effects": []
< }
< ]
< }
<}' |
<apify call bono718/agent-capability-substitution-resolver --silent --output-dataset