Retrieves a vault by its ID. See vaults.
Retrieve a vault
package main
import (
"context"
"fmt"
"github.com/openai/openai-go"
"github.com/openai/openai-go/option"
)
func main() {
client := openai.NewClient(
option.WithAPIKey("My API Key"),
)
vault, err := client.Beta.Agents.Vaults.Get(context.TODO(), "vault_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", vault.ID)
}
{
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"name": "name",
"object": "vault"
}Returns Examples
{
"id": "id",
"created_at": 0,
"metadata": {
"foo": "string"
},
"name": "name",
"object": "vault"
}