Skip to main content
POST
/
agent
/
datascience
/
interactive
Datascience Interactive
curl --request POST \
  --url https://chat.sambanova.ai/api/agent/datascience/interactive \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'prompt=<string>' \
  --form 'file_ids_json=<string>' \
  --form 'files=<string>' \
  --form resume=false \
  --form 'thread_id=<string>' \
  --form files.0.items='@example-file'
{
  "status": "interrupt",
  "thread_id": "thread-a"
}

Authorizations

Authorization
string
header
required

SambaNova API Key

Body

multipart/form-data

Request for data science interactive agent json object

prompt
string
required

The main prompt for the data science interactive agent

file_ids_json
string | null

A JSON string of file IDs, required for resuming a session

files
file[] | null

file to upload

resume
boolean
default:false

Whether to describe the results or not

thread_id
string | null

thread id for persistent context

Response

Successful Response

Unified schema for agent responses, including success and interrupt states.

status
string
required

status of agent gereneration

thread_id
string
required

Identifier for maintaining persistent conversation or context

result
string

results description

artifacts
string[]

List of generated artifact IDs (e.g., files, images, reports)

ID of a generated artifact

file_ids
string[]

Optional list of file identifiers associated with the response

ID of an uploaded or generated file

interrupt
Interrupt · object

Information about an interrupt event requiring user action