State

pydantic model ibm_watsonx_gov.entities.state.EvaluationState

Bases: BaseModel

Show JSON schema
{
   "title": "EvaluationState",
   "type": "object",
   "properties": {
      "input_text": {
         "title": "Input Text",
         "type": "string"
      },
      "context": {
         "anyOf": [
            {
               "items": {
                  "type": "string"
               },
               "type": "array"
            },
            {
               "type": "null"
            }
         ],
         "default": [],
         "title": "Context"
      },
      "generated_text": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Generated Text"
      },
      "ground_truth": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Ground Truth"
      },
      "record_id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Record Id"
      },
      "record_timestamp": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Record Timestamp"
      },
      "interaction_id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Interaction Id"
      }
   },
   "required": [
      "input_text"
   ]
}

Fields:
field context: list[str] | None = []
field generated_text: str | None = None
field ground_truth: str | None = None
field input_text: str [Required]
field interaction_id: str | None = None
field record_id: str | None = None
field record_timestamp: str | None = None