{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--SqlAgent.json",
  "title": "SqlAgent",
  "x-lintel": {
    "source": "https://www.eidolonai.com/json_schema/v1/schemas/Agent/SqlAgent.json",
    "sourceSha256": "2b3f3825d9bbb37ec3a4d8a664ae0d7c173dd0cd5e753c4e572a2aeed54be1fb"
  },
  "type": "object",
  "properties": {
    "implementation": {
      "const": "SqlAgent",
      "title": "Implementation"
    },
    "client": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--overview.json"
    },
    "apu": {
      "$ref": "https://catalog.lintel.tools/schemas/schemastore/eidolon-resource/_shared/latest--overview.json"
    },
    "description": {
      "default": "An agent for interacting with data. Can respond to queries provided in natural language.",
      "title": "Description",
      "type": "string"
    },
    "system_prompt": {
      "default": "\n    You are a helpful assistant that is a sql expert and helps a user query a {{ protocol }} database and analyse the response.\n    \n    Here is the database schema:\n    {{ metadata }}\n    \n    Use your as needed tools to investigate the database with the goal of providing the user with the query that they need.\n    \n    Think carefully.\n    ",
      "title": "System Prompt",
      "type": "string"
    },
    "user_prompt": {
      "default": "{{ message }}",
      "title": "User Prompt",
      "type": "string"
    },
    "clarification_prompt": {
      "default": "What clarifying information do you need? Phrase your response as an explicit question or several questions.",
      "title": "Clarification Prompt",
      "type": "string"
    },
    "response_prompt": {
      "default": "What is your response? Be explicit and concise.",
      "title": "Response Prompt",
      "type": "string"
    },
    "error_prompt": {
      "default": "An error occurred executing the query \"{{ query }}\": {{ error }}",
      "title": "Error Prompt",
      "type": "string"
    },
    "num_retries": {
      "default": 3,
      "title": "Num Retries",
      "type": "integer"
    }
  },
  "additionalProperties": false,
  "required": [
    "implementation"
  ],
  "reference_details": {
    "clz": "eidolon_ai_sdk.agent.sql_agent.agent.SqlAgent",
    "groups": [
      "Agent"
    ],
    "name": "SqlAgent",
    "overrides": {}
  }
}
