POST
/
v1
/
trace-learn
/
policy
/
next-action
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.traceLearnPolicyNextAction({
  body: {},
})
{
  "decisionId": "<string>",
  "targetId": "<string>",
  "label": "<string>",
  "reason": "<string>",
  "projectionFreshness": {
    "asOf": "<string>",
    "stale": true
  }
}

Body

application/json
studentId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
origin
enum<string>
required
Available options:
dashboard,
learn_complete,
homework_complete,
diagnostic_complete
completedActionId
string | null

a string at most 128 character(s) long

Required string length: 1 - 128

Response

Success

decisionId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
type
enum<string>
required
Available options:
lesson,
mini-test,
test,
practice,
break
targetId
string
required

a string at most 128 character(s) long

Required string length: 1 - 128
label
string
required
reason
string
required
projectionFreshness
object
required