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.abandonTraceLearnAttempt({
attemptId: process.env.TX_AGENT_KIT_ATTEMPT_ID ?? "attemptId",
}){
"attempt": {
"id": "<string>",
"assignmentId": "<string>",
"studentAssignmentId": "<string>",
"studentId": "<string>",
"startedAt": "<string>",
"submittedAt": "<string>",
"activeMs": 123,
"scoreBasisPoints": 123
}
}Smart Cub Learning
Abandon attempt
POST
/
v1
/
learning
/
attempts
/
{attemptId}
/
abandon
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.abandonTraceLearnAttempt({
attemptId: process.env.TX_AGENT_KIT_ATTEMPT_ID ?? "attemptId",
}){
"attempt": {
"id": "<string>",
"assignmentId": "<string>",
"studentAssignmentId": "<string>",
"studentId": "<string>",
"startedAt": "<string>",
"submittedAt": "<string>",
"activeMs": 123,
"scoreBasisPoints": 123
}
}⌘I