Finetune Agent
agent-chat-sessions
Report Mle Agent Turn Billing
Changed onCrash-safe per-turn billing endpoint for MLE chat sessions.
Args: request: FastAPI request used by the rate-limiter. session_id: agent_chat_sessions.id for the active chat. body: Per-turn usage payload with dedup key. auth: Authenticated caller; must own session_id.
Returns: AgentTurnBillingResponse with request_id and billed flag.
Raises: HTTPException: 404/403 for ownership failures.
post/v1/finetune-agent/sessions/{session_id}/billing/agent-turn
Request
- Base URLhttps://api.pioneer.ai (the document declares no server; this is the origin it was published from)
- Auth
- API key in header X-API-Key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
session_idstring uuid required
Request body
Response
Successful Response
Changes
- info
endpoint added
- info