GET
/
v1
/
trace-learn
/
learning-segments
/
{segmentId}
/
runtime
TypeScript client
import { TxAgentKitClient } from '@tx-agent-kit/sdk'

const client = new TxAgentKitClient({
  token: process.env.TX_AGENT_KIT_TOKEN
})

const response = await client.traceLearn.getTraceLearnLessonRuntime({
  segmentId: process.env.TX_AGENT_KIT_SEGMENT_ID ?? "segmentId",
})
{
  "id": "<string>",
  "segmentId": "<string>",
  "title": "<string>",
  "subjectName": "<string>",
  "topicId": "<string>",
  "topicName": "<string>",
  "durationSeconds": 123,
  "blocks": [
    {
      "id": "<string>",
      "title": "<string>",
      "content": "<string>",
      "items": [
        {
          "term": "<string>",
          "definition": "<string>"
        }
      ],
      "visualParts": [
        {
          "label": "<string>",
          "value": "<string>",
          "description": "<string>"
        }
      ]
    }
  ],
  "quiz": [
    {
      "id": "<string>",
      "questionVersionId": "<string>",
      "subjectName": "<string>",
      "topicId": "<string>",
      "topicName": "<string>",
      "prompt": "<string>",
      "options": [
        "<string>"
      ],
      "explanation": "<string>",
      "expectedTimeSeconds": 123,
      "clozeTemplate": "<string>",
      "clozeBlanks": [
        {
          "id": "<string>",
          "options": [
            "<string>"
          ]
        }
      ],
      "matchingLeftLabel": "<string>",
      "matchingRightLabel": "<string>",
      "matchingPairs": [
        {
          "left": "<string>",
          "right": "<string>"
        }
      ],
      "sequenceChips": [
        {
          "id": "<string>",
          "label": "<string>"
        }
      ]
    }
  ]
}

Path Parameters

segmentId
string
required

Response

Success

id
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
segmentId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
title
string
required
subjectId
enum<string>
required
Available options:
maths,
english,
verbal-reasoning,
non-verbal-reasoning
subjectName
string
required
topicId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
topicName
string
required
durationSeconds
number
required
blocks
object[]
required
quiz
object[]
required
source
enum<string>
required
Available options:
fixture,
published_content