INNER CODE UNIT · TypeScript
getLog
entropy-cloud/nop-entropy · tools/mission-driver/web/src/api/index.ts:99
export function getLog(
runId: string,
step: string,
opts?: GetLogOptions,
): Promise<LogData> {
const query = qs({
tail: opts?.tail,
offset: opts?.offset,
file: opts?.file,
type: opts?.type,
})
return request<LogData>(
`/api/runs/${encodeURIComponent(runId)}/logs/${encodeURIComponent(step)}${query}`,
)
}
/** GET /api/runs/:runId/logs/:step?type=prompt → agent prompt text.
* Convenience wrapper around {@link getLog} that injects `type: 'prompt'`. */