objectiveai-sdk 2.0.7

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "functions.PlaceholderScalarFunctionTaskExpression",
  "description": "Expression for a placeholder scalar function task (pre-compilation).\n\nLike [`ScalarFunctionTaskExpression`] but without owner/repository/commit.\nAlways produces a fixed output of 0.5.",
  "type": "object",
  "properties": {
    "input": {
      "description": "Expression for the input to pass to the placeholder function.\nReceives: `input`, `map` (if mapped).\n\nA value that can be either a literal or an expression.\n\nThis allows Function definitions to mix static values with dynamic\nexpressions. During compilation, expressions are evaluated while\nliteral values pass through unchanged.\n\n# Example\n\nLiteral value:\n```json\n\"hello world\"\n```\n\nJMESPath expression:\n```json\n{\"$jmespath\": \"input.greeting\"}\n```\n\nStarlark expression:\n```json\n{\"$starlark\": \"input['greeting']\"}\n```",
      "anyOf": [
        {
          "title": "Expression",
          "description": "An expression (JMESPath or Starlark) to evaluate.",
          "$ref": "functions.expression.Expression"
        },
        {
          "title": "Value",
          "description": "A literal value.",
          "$ref": "functions.expression.InputValueExpression"
        }
      ]
    },
    "input_schema": {
      "description": "JSON Schema defining the expected input structure.",
      "$ref": "functions.expression.InputSchema"
    },
    "map": {
      "description": "Expression that evaluates to the number of mapped task instances.\nEach instance receives `map` as an integer index (0-based).",
      "anyOf": [
        {
          "$ref": "functions.expression.Expression"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "output": {
      "description": "Expression to transform the fixed 0.5 output.\nReceives: `input`, `output` as `Scalar(0.5)`.",
      "$ref": "functions.expression.Expression"
    },
    "skip": {
      "description": "If this expression evaluates to true, skip the task. Receives: `input`.",
      "anyOf": [
        {
          "$ref": "functions.expression.Expression"
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    }
  }
}