{"command":{"effect":"write","timeoutSeconds":120,"inputSchema":{"type":"object","description":"Create a vector store.","properties":{"body":{"$ref":"#/definitions/CreateVectorStoreRequest"}},"required":["body"],"additionalProperties":false,"definitions":{"CreateVectorStoreRequest":{"type":"object","additionalProperties":false,"properties":{"file_ids":{"description":"A list of [File](https://developers.openai.com/api/reference/resources/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files.","type":"array","maxItems":500,"items":{"type":"string"}},"name":{"description":"The name of the vector store.","type":"string"},"description":{"description":"A description for the vector store. Can be used to describe the vector store's purpose.","type":"string"},"expires_after":{"$ref":"#/definitions/VectorStoreExpirationAfter"},"chunking_strategy":{"type":"object","description":"The chunking strategy used to chunk the file(s). If not set, will use the `auto` strategy. Only applicable if `file_ids` is non-empty.","oneOf":[{"$ref":"#/definitions/AutoChunkingStrategyRequestParam"},{"$ref":"#/definitions/StaticChunkingStrategyRequestParam"}]},"metadata":{"$ref":"#/definitions/Metadata"}}},"VectorStoreExpirationAfter":{"type":"object","title":"Vector store expiration policy","description":"The expiration policy for a vector store.","properties":{"anchor":{"description":"Anchor timestamp after which the expiration policy applies. Supported anchors: `last_active_at`.","type":"string","enum":["last_active_at"]},"days":{"description":"The number of days after the anchor time that the vector store will expire.","type":"integer","minimum":1,"maximum":365}},"required":["anchor","days"]},"AutoChunkingStrategyRequestParam":{"type":"object","title":"Auto Chunking Strategy","description":"The default strategy. This strategy currently uses a `max_chunk_size_tokens` of `800` and `chunk_overlap_tokens` of `400`.","additionalProperties":false,"properties":{"type":{"type":"string","description":"Always `auto`.","enum":["auto"]}},"required":["type"]},"StaticChunkingStrategyRequestParam":{"type":"object","title":"Static Chunking Strategy","description":"Customize your own chunking strategy by setting chunk size and chunk overlap.","additionalProperties":false,"properties":{"type":{"type":"string","description":"Always `static`.","enum":["static"]},"static":{"$ref":"#/definitions/StaticChunkingStrategy"}},"required":["type","static"]},"Metadata":{"anyOf":[{"type":"object","description":"Set of 16 key-value pairs that can be attached to an object. This can be\nuseful for storing additional information about the object in a structured\nformat, and querying for objects via API or the dashboard.\n\nKeys are strings with a maximum length of 64 characters. Values are strings\nwith a maximum length of 512 characters.\n","additionalProperties":{"type":"string"}},{"type":"null"}]},"StaticChunkingStrategy":{"type":"object","additionalProperties":false,"properties":{"max_chunk_size_tokens":{"type":"integer","minimum":100,"maximum":4096,"description":"The maximum number of tokens in each chunk. The default value is `800`. The minimum value is `100` and the maximum value is `4096`."},"chunk_overlap_tokens":{"type":"integer","description":"The number of tokens that overlap between chunks. The default value is `400`.\n\nNote that the overlap must not exceed half of `max_chunk_size_tokens`.\n"}},"required":["max_chunk_size_tokens","chunk_overlap_tokens"]}}},"name":"Create vector store","id":"openai.createvectorstore","example":{"body":{}},"maxRequests":1,"summary":false}}