cURL
curl --request POST \ --url https://chat.sambanova.ai/api/agent/financialanalysis/interactive \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "<string>", "resume": false, "thread_id": "<string>" } '
{ "status": "success", "result": "I've created the bar chart...", "artifacts": [ "file-id-123" ], "thread_id": "thread-abc" }
The financial analysis agent analyzes stocks, companies, and market data. This interactive endpoint uses a two-step workflow:
SambaNova API Key
Request for financial interactive agent json object
The main prompt for the financial interactive agent
Whether to describe the results or not
thread id for persistent context
Successful Response
Base agent response object
status of agent gereneration
results description
generated artifacts
id of generated artifact