Adaline deployments
Skills that guide AI coding agents to integrate with the Adaline platform — send traces, manage prompts, run evaluations, fetch deployments, and more. Compatible with Cursor, Claude Code, Codex, Windsurf, and 40+ other agents.
npx -y skills add adaline/skills --skill adaline-deploymentsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Fetch deployed prompt snapshots from Adaline at runtime. Use when integrating prompt deployments, environment-based latest lookups, prompt caching, or pinned deployment IDs.
SKILL.md
4.5 KB, as published. Nobody here has run it
Adaline Deployments
Concepts
Adaline deployments are immutable prompt snapshots that your application fetches at runtime. The public v2 API currently exposes deployment read operations: create and promote deployments in the Adaline Platform UI, then fetch the approved snapshot from code.
Key terms:
- Deployment — a prompt snapshot deployed to an environment
- Deployment environment — an isolation boundary such as development, staging, or production
- Latest deployment — the current snapshot for a prompt/environment pair, fetched with
deploymentId=latest - Pinned deployment — a concrete deployment ID fetched directly for reproducibility
Configuration
Set these environment variables when credentials are available:
ADALINE_API_KEY— workspace API key from Admin > API KeysADALINE_PROMPT_ID— prompt to fetchADALINE_DEPLOYMENT_ENVIRONMENT_ID— environment for latest lookup
Base URL: https://api.adaline.ai/v2
How It Works
- Build and test a prompt in the Prompt area of Adaline.
- Deploy the prompt snapshot to an environment in the Platform UI.
- Fetch the current snapshot with
GET /deployments?promptId=...&deploymentId=latest&deploymentEnvironmentId=.... - Cache the returned
Deploymentin your app and refresh it on a timer, restart, or product-specific webhook signal.
Each deployment includes prompt.config, prompt.messages, prompt.tools, and prompt.variables. Config values use providerName, providerId, model, and flexible settings.
Quick Triage
| Symptom | First Fix |
|---|---|
| Fetch returns 404 | Verify promptId, deploymentId, and deploymentEnvironmentId |
| Latest lookup fails | Include deploymentEnvironmentId when deploymentId=latest or current |
| Wrong model settings | Read deployment.prompt.config.settings; temperature/max token fields are not top-level |
| Variables not substituted | Replace {{name}} placeholders in text message content before calling the provider |
| Python example returns coroutine | Await SDK methods inside an asyncio event loop |
Approach 1: REST API
# Latest deployment for an environment
curl "https://api.adaline.ai/v2/deployments?promptId=$ADALINE_PROMPT_ID&deploymentId=latest&deploymentEnvironmentId=$ADALINE_DEPLOYMENT_ENVIRONMENT_ID" \
-H "Authorization: Bearer $ADALINE_API_KEY"
# Specific deployment by ID
curl "https://api.adaline.ai/v2/deployments?promptId=$ADALINE_PROMPT_ID&deploymentId=deploy_abc123" \
-H "Authorization: Bearer $ADALINE_API_KEY"
Approach 2: TypeScript SDK
import { Adaline } from '@adaline/client';
const adaline = new Adaline(); // reads ADALINE_API_KEY
const deployment = await adaline.getLatestDeployment({
promptId: process.env.ADALINE_PROMPT_ID!,
deploymentEnvironmentId: process.env.ADALINE_DEPLOYMENT_ENVIRONMENT_ID!,
});
const pinned = await adaline.getDeployment({
promptId: process.env.ADALINE_PROMPT_ID!,
deploymentId: 'deploy_abc123',
});
Install: npm install @adaline/client @adaline/api
See references/typescript-sdk.md for a complete inference example.
Approach 3: Python SDK
import asyncio
from adaline import Adaline
async def main():
adaline = Adaline() # reads ADALINE_API_KEY
deployment = await adaline.get_latest_deployment(
prompt_id="prompt_abc123",
deployment_environment_id="environment_abc123",
)
pinned = await adaline.get_deployment(
prompt_id="prompt_abc123",
deployment_id="deploy_abc123",
)
asyncio.run(main())
Install: pip install adaline-client adaline-api
See references/python-sdk.md for a complete inference example.
Best Practices
- Use latest lookup for normal runtime traffic and pinned deployment IDs for reproducible tests.
- Cache deployments in memory; do not fetch on every user request.
- Store IDs in environment variables or configuration, not source code.
- Substitute variables only in text content. Preserve image, PDF, tool-call, tool-response, and reasoning content as structured objects.
- Pass
deployment.prompt.config.settingsthrough to the provider after adapting provider-specific casing where needed.
References
See references/api.md for the REST contract. See references/typescript-sdk.md for TypeScript SDK usage. See references/python-sdk.md for Python SDK usage.