objectiveai-sdk 2.0.7

ObjectiveAI SDK, definitions, and utilities
Documentation
{
  "title": "agent.completions.message.AssistantMessageExpression",
  "description": "Expression variant of [`AssistantMessage`] for dynamic content.",
  "type": "object",
  "properties": {
    "content": {
      "description": "The content expression.",
      "anyOf": [
        {
          "description": "A 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": "agent.completions.message.RichContentExpression"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "name": {
      "anyOf": [
        {
          "description": "A 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.",
              "type": "string"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "reasoning": {
      "anyOf": [
        {
          "description": "A 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.",
              "type": "string"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "refusal": {
      "anyOf": [
        {
          "description": "A 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.",
              "type": "string"
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    },
    "tool_calls": {
      "anyOf": [
        {
          "description": "A 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.",
              "type": "array",
              "items": {
                "description": "A 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": "agent.completions.message.AssistantToolCallExpression"
                  }
                ]
              }
            }
          ]
        },
        {
          "type": "null"
        }
      ],
      "omitempty": true
    }
  }
}