Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

go-vectara

БесплатноБез исполняемых скриптовНе проверен

Unofficial Go client for the Vectara API v2. Package vectara (github.com/psyb0t/go-vectara) has typed methods for corpora, documents, search, RAG queries…

psyb0tот psyb0t979 установок в других каталогах

Об этом скилле

go-vectara

Unofficial, typed Go client for the Vectara API v2, in package vectara at the module root.

For installation, operations, pagination and response fields, see references/setup.md.

Security & safety

  • Read an API key from VECTARA_API_KEY and send it in x-api-key. Never hardcode, commit or log credentials or authentication headers.
  • Use https://api.vectara.io as the base URL. Generated paths include /v2.
  • OAuth uses a bearer token in the Authorization header, which your code gets from https://auth.vectara.io/oauth2/token. Visitor tokens and federated bearer credentials work only on operations declaring those schemes.
  • Creating, updating, deleting or resetting resources changes account data, and deleting has no undo. Run those operations only on resources the task owns and only when the user asked for that specific change. Queries and agent execution may consume account resources or invoke configured tools.

When to use

  • Go code needs Vectara corpora, documents, retrieval or RAG queries.
  • Go code needs Vectara chats, agents, tools or pipelines.
  • The project imports github.com/psyb0t/go-vectara.

When not to use

  • The code is not Go. This module ships only a Go package.
  • You need a client maintained by Vectara. This client is unofficial.
  • You want to change the generated client. See AGENTS.md in the repo.

Finding endpoints and types

The usage below covers one call. Every operation in the spec has a generated method, and the spec's descriptions are on them as Go doc comments. Look names and fields up instead of guessing. After go get github.com/psyb0t/go-vectara, from inside your module:

go doc github.com/psyb0t/go-vectara ClientWithResponsesInterface  # every endpoint method
go doc github.com/psyb0t/go-vectara ListCorporaParams              # one method, params type or model
go doc -all github.com/psyb0t/go-vectara                           # the whole package

The same documentation is at https://pkg.go.dev/github.com/psyb0t/go-vectara.

Method names come from the spec's operation IDs. <OperationId>WithResponse takes the context, then the path parameters in order, then *<OperationId>Params when the operation has query or header parameters, then the request body when it has one. Almost every operation takes a params struct, because the spec declares request timeout headers on them; pass nil when you set none. The JSON200 field (or JSON201 and so on, per declared status) holds the decoded body; it is nil for any other status.

Usage

Set x-api-key with a request editor, create the client, then call an operation. This is the repo's example_test.go:

import (
	"context"
	"net/http"
	"os"

	"github.com/psyb0t/go-vectara"
)

auth := vectara.WithRequestEditorFn(func(_ context.Context, req *http.Request) error {
	req.Header.Set("x-api-key", os.Getenv("VECTARA_API_KEY"))

	return nil
})

client, err := vectara.NewClientWithResponses("https://api.vectara.io", auth)
if err != nil {
	return err
}

res, err := client.ListCorporaWithResponse(context.Background(), nil)
if err != nil {
	return err
}

_ = res.JSON200 // *vectara.ListCorporaResponse

Check err for request construction, transport and decoding failures. Check StatusCode() and the expected success field such as JSON200 for API failures. A non-2xx response can have a nil Go error. Optional fields may be pointers; check before dereferencing.

The client does not paginate, retry or refresh OAuth tokens automatically. For server-sent events, call the raw method, decode the stream yourself and close the response body. Parsed response methods read the full body.

Полный SKILL.md на ClawHub

Установить go-vectara в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл go-vectara?

Unofficial Go client for the Vectara API v2. Package vectara (github.com/psyb0t/go-vectara) has typed methods for corpora, documents, search, RAG queries, chats, agents, tools, pipelines and account administration. Use when Go code needs Vectara or already imports go-vectara.

Как установить скилл go-vectara?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл go-vectara запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить go-vectara с