{
  "name": "openaiassistant",
  "display_name": "OpenAI Assistant",
  "description": "Utilizes Assistant API from Open AI.",
  "group": [
    "transform"
  ],
  "versions": [
    1.0
  ],
  "inputs": 1,
  "outputs": 1,
  "credentials": [
    {
      "name": "openAiApi",
      "required": true
    }
  ],
  "properties": [
    {
      "name": "mode",
      "display_name": "Operation",
      "kind": "options",
      "required": false,
      "default": "existing"
    },
    {
      "name": "name",
      "display_name": "Name",
      "kind": "string",
      "required": true,
      "default": ""
    },
    {
      "name": "instructions",
      "display_name": "Instructions",
      "kind": "string",
      "required": false,
      "default": "",
      "description": "How the Assistant and model should behave or respond"
    },
    {
      "name": "model",
      "display_name": "Model",
      "kind": "options",
      "required": true,
      "default": "gpt-3.5-turbo-1106",
      "description": "The model which will be used to power the assistant. <a href="
    },
    {
      "name": "assistantId",
      "display_name": "Assistant",
      "kind": "options",
      "required": true,
      "default": "",
      "description": "The assistant to use. <a href="
    },
    {
      "name": "text",
      "display_name": "Text",
      "kind": "string",
      "required": true,
      "default": "={{ $json.chat_input }}"
    },
    {
      "name": "text",
      "display_name": "Text",
      "kind": "string",
      "required": true,
      "default": "={{ $json.chatInput }}"
    },
    {
      "name": "nativeTools",
      "display_name": "OpenAI Tools",
      "kind": "multiOptions",
      "required": false
    },
    {
      "name": "noticeTools",
      "display_name": "Connect your own custom tools to this node on the canvas",
      "kind": "notice",
      "required": false,
      "default": ""
    },
    {
      "name": "noticeTools",
      "display_name": "Upload files for retrieval using the <a href=",
      "kind": "notice",
      "required": false,
      "default": ""
    },
    {
      "name": "options",
      "display_name": "Options",
      "kind": "collection",
      "required": false,
      "default": "https://api.openai.com/v1",
      "description": "Additional options to add"
    }
  ],
  "source_path": "/home/mcochran/n8n/packages/@n8n/nodes-langchain/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.ts",
  "routing": {
    "base_url": "={{ $parameter.options?.baseURL?.split(",
    "auth_headers": [],
    "auth_query": [],
    "credential_name": "openAiApi",
    "operations": [],
    "sends": [
      {
        "param_name": "model",
        "send_type": "body",
        "dest_key": "model",
        "applies_to_operations": [],
        "applies_to_resources": []
      },
      {
        "param_name": "assistantId",
        "send_type": "body",
        "dest_key": "assistant",
        "applies_to_operations": [],
        "applies_to_resources": []
      }
    ]
  }
}