openapi: 3.1.0 info: title: Sambanova Agents Service description: >- Service for Sambanova agents version: 0.0.1 termsOfService: https://sambanova.ai/cloud-end-user-license-agreement contact: email: info@sambanova.ai name: SambaNova information license: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0.html externalDocs: description: >- Find out more in the official SambaNova docs url: https://docs.sambanova.ai/cloud/api-reference/overview servers: - url: https://chat.sambanova.ai/api components: ############################ # SECURITY DEFINITIONS ############################ securitySchemes: api_key: type: http description: SambaNova API Key scheme: bearer bearerFormat: apiKey ############################ # BASE SCHEMAS DEFINITIONS ############################ schemas: DatascienceAgentRequest: title: DatascienceAgentRequest type: object description: Request for data science agent json object additionalProperties: false properties: files: description: One or more files to be analyzed. items: format: binary type: string title: Files type: array prompt: description: The main prompt for the data science agent. title: Prompt type: string required: - prompt - files examples: - prompt: "Perform exploratory data analysis on this dataset" files: "@dataset.csv" DatascienceAgentInteractiveRequest: title: DatascienceAgentInteractiveRequest type: object description: Request for data science interactive agent json object additionalProperties: false properties: file_ids_json: anyOf: - type: string - type: 'null' description: A JSON string of file IDs, required for resuming a session title: File Ids Json files: anyOf: - items: format: binary type: string type: array - type: 'null' description: file to upload title: Files prompt: title: Prompt description: The main prompt for the data science interactive agent type: string resume: default: false title: Resume description: Whether to describe the results or not type: boolean thread_id: anyOf: - type: string - type: 'null' title: Thread Id description: thread id for persistent context required: - prompt examples: - prompt: "Perform exploratory data analysis on this dataset" files: "@dataset.csv" resume: false - prompt: "approve" thread_id: "thread-abc123" file_ids_json: ["file-id-1", "file-id-2"] resume: true CodingAgentInteractiveRequest: title: CodingAgentInteractiveRequest type: object description: Request for coding interactive agent json object additionalProperties: false properties: code: title: Code description: Code to run type: string prompt: title: Prompt description: The main prompt for the coding interactive agent type: string resume: default: false title: Resume description: Whether to describe the results or not type: boolean thread_id: anyOf: - type: string - type: 'null' title: Thread Id description: thread id for persistent context required: - prompt - code examples: - prompt: "Create a function to calculate fibonacci" code: | def fib(n): return fib(n-1) + fib(n-2) resume: false - prompt: "Fix the base case issue" code: | def fib(n): if n <= 1: return n return fib(n-1) + fib(n-2) thread_id: "thread-abc123" resume: true CodingAgentRequest: title: CodingAgentRequest type: object description: Request for coding agent json object additionalProperties: false properties: code: title: Code description: Code to run type: string prompt: title: Prompt description: The main prompt for the coding agent type: string required: - prompt - code examples: - prompt: "Run this code and explain the output" code: | import numpy as np import matplotlib.pyplot as plt x = np.linspace(0, 2 * np.pi, 100) y = np.sin(x) plt.plot(x, y) plt.savefig("sine_wave.png") print("Chart created!") DeepResearchInteractiveRequest: title: DeepResearchInteractiveRequest type: object description: Request for deep research interactive agent json object additionalProperties: false properties: prompt: title: Prompt description: The main prompt for the deep research interactive agent type: string resume: default: false title: Resume description: Whether to describe the results or not type: boolean thread_id: anyOf: - type: string - type: 'null' title: Thread Id description: thread id for persistent context required: - prompt examples: - prompt: "Research AI accelerator market" resume: false - prompt: "approve" thread_id: "thread-abc123" resume: true DeepResearchRequest: title: DeepResearchRequest type: object description: Request for deep research agent json object additionalProperties: false properties: prompt: title: Prompt description: The main prompt for the deep research agent type: string required: - prompt examples: - prompt: "Conduct research on quantum computing advances in 2024" FinancialAnalysisInteractiveRequest: title: FinancialAnalysisInteractiveRequest type: object description: Request for financial interactive agent json object additionalProperties: false properties: prompt: title: Prompt description: The main prompt for the financial interactive agent type: string resume: default: false title: Resume description: Whether to describe the results or not type: boolean thread_id: anyOf: - type: string - type: 'null' title: Thread Id description: thread id for persistent context required: - prompt examples: - prompt: "Perform a financial analysis of Apple" FinancialAnalysisRequest: title: FinancialAnalysisRequest type: object description: Request for financial agent json object additionalProperties: false properties: prompt: title: Prompt description: The main prompt for the financial agent type: string required: - prompt examples: - prompt: "Perform a financial analysis of Apple" HTTPValidationError: title: HTTPValidationError type: object properties: detail: items: $ref: '#/components/schemas/ValidationError' title: Detail type: array MainAgentInteractiveRequest: title: MainAgentInteractiveRequest type: object description: Request for main interactive agent json object additionalProperties: false properties: prompt: title: Prompt description: The main prompt for the main interactive agent type: string resume: default: false title: Resume description: Whether to describe the results or not type: boolean thread_id: anyOf: - type: string - type: 'null' title: Thread Id description: thread id for persistent context required: - prompt examples: - prompt: "Create a bar chart for Q1 sales" resume: false - prompt: "Now create a pie chart showing the distribution" resume: true thread_id: "thread-abc" MainAgentRequest: type: object title: MainAgentRequest description: Request for main agent json object additionalProperties: false properties: prompt: title: prompt description: The main prompt for the main agent type: string required: - prompt examples: - prompt: "Create a bar chart for Q1 sales" resume: false ValidationError: properties: loc: items: anyOf: - type: string - type: integer title: Location type: array msg: title: Message type: string type: title: Error Type type: string required: - loc - msg - type title: ValidationError type: object BaseAgentResponse: type: object title: Base agent response object description: Base agent response object additionalProperties: false properties: status: title: status description: status of agent gereneration type: string result: title: result description: results description type: string artifacts: title: artifacts description: generated artifacts type: array items: type: string description: id of generated artifact thread_id: title: thread_id description: thread id for persistent context type: string required: - status - result - artifacts - thread_id example: status: success result: I've created the bar chart... artifacts: - file-id-123 thread_id: thread-abc AgentResponse: type: object title: Agent Response Object description: Unified schema for agent responses, including success and interrupt states. additionalProperties: false properties: status: title: status description: status of agent gereneration type: string result: title: Result description: results description type: string artifacts: title: Artifacts description: List of generated artifact IDs (e.g., files, images, reports) type: array items: type: string description: ID of a generated artifact file_ids: title: File IDs description: Optional list of file identifiers associated with the response type: array items: type: string description: ID of an uploaded or generated file thread_id: title: Thread ID description: Identifier for maintaining persistent conversation or context type: string interrupt: title: Interrupt description: Information about an interrupt event requiring user action type: object properties: type: title: Type description: Type of interrupt (e.g., approval) type: string message: title: Message description: Plan or information message for the user type: string required: - type - message required: - status - thread_id example: status: interrupt thread_id: thread-a DataScienceAgentHTMLResponse: type: object title: Data Science Agent HTML Response description: Generated HTML report for exploratory data analysis (EDA) additionalProperties: false properties: content_type: title: content_type description: MIME type of the generated report (should be 'text/html') type: string example: text/html title: title: title description: Title of the analysis report type: string example: Data Science Analysis Report html: title: html description: Full HTML content of the generated report type: string example: |
The dataset contains 1,000 rows and 15 columns...