Documentation
¶
Overview ¶
Package refbackend provides spec-shaped HTTP emulators for remote inference APIs. They are test-support utilities: production packages (cmd, core, plugins, pkg, etc.) must not list refbackend in their non-test dependency graph—integration and other tests may import it from *_test.go only (see internal/core/runtime/boundaries_test.go and task 10.0.7 in go-core-reimplementation-v1).
Subpackages include openairesponses, openaichat, anthropicmessages, gemini, bedrock, and acp. Each implements the server-side wire shapes that official vendor clients expect, so integration tests can validate backend connectors without live providers. Normative contracts are documented in .kiro/specs/archive/go-core-reimplementation-v1/research.md.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package acp is a reference backend emulator for the Agent Client Protocol (ACP) prompt-turn subset used by integration tests.
|
Package acp is a reference backend emulator for the Agent Client Protocol (ACP) prompt-turn subset used by integration tests. |
|
Package anthropicmessages is a reference backend emulator for the Anthropic Messages API.
|
Package anthropicmessages is a reference backend emulator for the Anthropic Messages API. |
|
Package bedrock is a reference backend emulator for Amazon Bedrock Runtime Converse and ConverseStream.
|
Package bedrock is a reference backend emulator for Amazon Bedrock Runtime Converse and ConverseStream. |
|
Package gemini is a reference backend emulator for the Google Gemini generateContent API.
|
Package gemini is a reference backend emulator for the Google Gemini generateContent API. |
|
Package jsonprobe inspects JSON request bodies for reference backend servers.
|
Package jsonprobe inspects JSON request bodies for reference backend servers. |
|
Package llamacpp provides a spec-faithful HTTP emulator of the llama.cpp OpenAI-compatible API server for use in tests.
|
Package llamacpp provides a spec-faithful HTTP emulator of the llama.cpp OpenAI-compatible API server for use in tests. |
|
Package nvidia is a reference backend emulator for NVIDIA NIM's API surface.
|
Package nvidia is a reference backend emulator for NVIDIA NIM's API surface. |
|
Package ollama is a reference backend emulator for Ollama's API surface.
|
Package ollama is a reference backend emulator for Ollama's API surface. |
|
Package openaichat is a reference backend emulator for the OpenAI Chat Completions API.
|
Package openaichat is a reference backend emulator for the OpenAI Chat Completions API. |
|
Package openaicodex is a reference backend emulator for the OpenAI Codex internal Responses endpoint (POST /backend-api/codex/responses).
|
Package openaicodex is a reference backend emulator for the OpenAI Codex internal Responses endpoint (POST /backend-api/codex/responses). |
|
Package openairesponses is a reference backend emulator for the OpenAI Responses API.
|
Package openairesponses is a reference backend emulator for the OpenAI Responses API. |
|
Package openresponses is an independent OpenResponses remote backend emulator.
|
Package openresponses is an independent OpenResponses remote backend emulator. |
|
Package openrouter is a reference backend emulator for OpenRouter's API surface.
|
Package openrouter is a reference backend emulator for OpenRouter's API surface. |
|
Package vllm provides a spec-faithful HTTP emulator of the vLLM OpenAI-compatible API server for use in tests.
|
Package vllm provides a spec-faithful HTTP emulator of the vLLM OpenAI-compatible API server for use in tests. |