> ## Documentation Index
> Fetch the complete documentation index at: https://sambanova-systems.mintlify.site/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Datascience Agent And Report

> The data science agent analyzes datasets, generates visualizations, and produces comprehensive reports. This fire-and-forget endpoint submits a prompt and returns the final report in a single call.




## OpenAPI

````yaml https://raw.githubusercontent.com/sambanova/agents/refs/heads/main/chat-sambanova-agent-api-spec.yaml post /agent/datascience
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
servers:
  - url: https://chat.sambanova.ai/api
security:
  - api_key: []
externalDocs:
  description: Find out more in the official SambaNova docs
  url: https://docs.sambanova.ai/cloud/api-reference/overview
paths:
  /agent/datascience:
    post:
      tags:
        - Subagents
      summary: Datascience Agent And Report
      description: >
        The data science agent analyzes datasets, generates visualizations, and
        produces comprehensive reports. This fire-and-forget endpoint submits a
        prompt and returns the final report in a single call.
      operationId: datascience_agent_and_report_agent_datascience_post
      requestBody:
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DatascienceAgentRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataScienceAgentHTMLResponse'
          description: Successful Response
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - api_key: []
components:
  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'
    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: |
            <!DOCTYPE html>
            <html>
            <head>
              <title>Data Science Analysis Report</title>
              <style>/* Professional styling */</style>
            </head>
            <body>
              <h1>Exploratory Data Analysis Report</h1>
              <h2>Dataset Overview</h2>
              <p>The dataset contains 1,000 rows and 15 columns...</p>
              <h2>Statistical Summary</h2>
              <table><!-- Summary statistics --></table>
              <h2>Visualizations</h2>
              <img src="data:image/png;base64,..." alt="Distribution Plot">
              <img src="data:image/png;base64,..." alt="Correlation Heatmap">
              <h2>Key Findings</h2>
              <ul>
                <li>Strong correlation between features X and Y</li>
                <li>Missing values detected in column Z</li>
              </ul>
            </body>
            </html>
      required:
        - content_type
        - title
        - html
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
    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
  securitySchemes:
    api_key:
      type: http
      description: SambaNova API Key
      scheme: bearer
      bearerFormat: apiKey

````