/AmphiLoop:bridgic-llmsfrom AmphiLoop
Initializes LLM providers (OpenAI, OpenAI-compatible, vLLM) for bridgic projects with chat/stream interfaces and structured output protocols.
Ships in AmphiLoop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Model-neutral LLM integration with protocol-driven capability declaration.
| Package | BaseLlm | StructuredOutput | ToolSelection |
|---|---|---|---|
bridgic-llms-openai | yes | yes | yes |
bridgic-llms-openai-like | yes | no | no |
bridgic-llms-vllm | yes | yes | yes |
python-dotenv | — | — | — |
Install only the LLM provider package you need. python-dotenv is required for loading .env configuration.
Installation: Run the install script to set up all dependencies:
bash "skills/bridgic-llms/scripts/install-deps.sh" "$PWD" [PROVIDER]
Supported providers: openai (default), openai-like, vllm. The script checks uv availability, initializes a uv project if needed, installs any missing packages via uv add, and runs uv sync to finalize the environment. When it exits successfully the project is fully initialized and ready to use — no manual uv add / uv sync follow-up is required.
import os
from dotenv import load_dotenv
from bridgic.llms.openai import OpenAILlm, OpenAIConfiguration
load_dotenv()
llm = OpenAILlm(
api_key=os.environ.get("LLM_API_KEY"),
api_base=os.environ.get("LLM_API_BASE"),
configuration=OpenAIConfiguration(
model=os.environ.get("LLM_MODEL", "gpt-4o"),
temperature=0.0,
max_tokens=16384,
),
timeout=180.0,
)
| Provider | When to Use |
|---|---|
OpenAILlm | Production use, need structured output or tool calling. Works with OpenAI API. |
OpenAILikeLlm | Third-party OpenAI-compatible APIs (DashScope, etc.), only need basic chat/stream. |
VllmServerLlm | Self-hosted vLLM inference server, full capability. |
Common pitfall: Do NOT use OpenAILikeLlm when you need structured output or tool selection — it does not implement those protocols. Use OpenAILlm instead.
All providers implement BaseLlm:
from bridgic.core.model.types import Message, Role
messages = [
Message.from_text("You are a helpful assistant.", role=Role.SYSTEM),
Message.from_text("Hello!", role=Role.USER),
]
# Chat — complete response
response = llm.chat(messages=messages, model="gpt-4o", temperature=0.7)
print(response.message.content)
# Stream — real-time chunks
for chunk in llm.stream(messages=messages, model="gpt-4o"):
print(chunk.delta, end="", flush=True)
See references/llm-integration.md for:
StructuredOutput — generate Pydantic model instances or JSON schema conformant outputToolSelection — function/tool calling with Tool definitions| Scenario | Load |
|---|---|
| Full API details, all providers, advanced protocols | llm-integration.md |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bitsky-tech/amphiloop --plugin AmphiLoop3 skills in this plugin
/bridgic-amphibiousBuild agents with the Bridgic Amphibious dual-mode framework — combining LLM-driven (agent) and deterministic (workflow) execution with automatic fallback and human-in-the-loop support. Use when: (1) writing code that imports from bridgic.amphibious, (2) creating AmphibiousAutoma subclasses, (3) defining CognitiveWorker think units, (4) implementing on_agent/on_workflow methods, (5) working with CognitiveContext, Exposure system, or cognitive policies, (6) adding human-in-the-loop interactions (HumanCall, request_human, request_human_tool), (7) scaffolding a new amphibious project via CLI, (8) any task involving the bridgic-amphibious framework./bridgic-browserUse for any task requiring a real browser: viewing web pages, accessing login-gated sites, operating web UIs, scraping social media (Xiaohongshu/Weibo/Twitter/X, etc.), reading JS-rendered or dynamic pages, bypassing bot detection, form filling, e2e checks, and general web automation. Prefer this over WebFetch whenever the page needs JS execution, authenticated session, interaction, or stealth. Invoke via terminal CLI (`bridgic-browser ...`) or Python SDK (`from bridgic.browser.session import Browser`, `from bridgic.browser.tools import BrowserToolSetBuilder`). Also covers accessibility snapshot refs, CLI-SDK mapping/migration, and generating SDK code from CLI action steps.
Other plugins' skills for the same job