Integrations · PromptLayer
A Guild agent can manage your PromptLayer workspace: publishing prompt templates, logging and tracing LLM requests, running evaluation pipelines, and working with datasets and tables. Guild stores the API key server-side and injects it into every request, so agent code never sees it. Credential policies let you restrict which operations each agent can call, and every request is auditable through Guild’s credential proxy.
Book a demo
See how teams govern agents that use PromptLayer.
Talk to sales
Get access to Guild, then connect PromptLayer to your first agent.
What the PromptLayer integration exposes
The tools cover prompt template lifecycle (create, publish, label, retrieve, delete), request logging and tracing (log requests, create spans, ingest OTLP traces, close traces), and dataset management (create groups, draft versions, add request logs and traces to datasets). They also cover evaluation pipelines (create, run, score, rename, delete) and table operations (create tables and sheets, add rows, configure scorecards, trigger recalculations, manage versions). Tools for registering tools and workflows, managing skill collections, and setting environment variables round out the workspace management surface.How it works
1
Retrieve your PromptLayer API key
Log in to PromptLayer and copy your API key from your account settings.
2
Connect the credential in Guild
In Guild, go to Access & setup > Credentials, click Connect, select promptlayer, and paste the key into the API Key field. See Credentials for workspace, member, and agent-scoped options.
3
Import and spread the tools
Import PromptlayerTools from the integration package and spread it into your agent’s tools object. Use pick() from the SDK tools to include only the operations your agent needs.
Why PromptLayer access needs governing
PromptLayer workspaces hold prompt templates, LLM request history, evaluation results, and environment variables. An agent with unrestricted access can publish or delete prompt templates, modify dataset versions, reconfigure scorecards, and alter workspace environment variables. Guild’s credential policies let you write ALLOW and DENY rules that the credential proxy enforces before any request leaves Guild, scoped to specific agents or workspaces on the same connected credential. Guild stores the API key server-side and injects it as the X-API-Key header. Agent code never receives the key directly. You can scope a credential to one workspace, one member, or one agent using the options on the Credentials page, and you can lock down allowed operations with credential policies. Agents without a matching credential fail at the proxy rather than reaching PromptLayer with an unexpected key.About the PromptLayer integration
Agents can create and retrieve prompt templates, log and trace LLM requests, and manage datasets and evaluation pipelines. They can also build and score tables, configure scorecards, and register tools and workflows within a PromptLayer workspace. The integration isguildai~promptlayer.
Authentication
- Type: API key
- Header: Guild sends the key as
X-API-Key: <key>
Setup
1
Connect PromptLayer
In Guild, go to Access & setup > Credentials, click Connect, select promptlayer, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with thepromptlayer_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~promptlayer:
All 143 tools
All 143 tools
Frequently asked questions
Can I limit an agent to read-only access to prompt templates?
Can I limit an agent to read-only access to prompt templates?
Yes. Write a credential policy with ALLOW rules that list only retrieval operations such as get and list operations, then add a DENY rule for publish, patch, and delete operations. Guild’s credential proxy enforces the rules before any request reaches PromptLayer. See credential policies.
Does the integration support webhook events from PromptLayer?
Does the integration support webhook events from PromptLayer?
No. The catalog entry for
guildai~promptlayer lists no webhook events, so event-triggered runs from PromptLayer are not available.Can different agents in the same workspace use different PromptLayer accounts?
Can different agents in the same workspace use different PromptLayer accounts?
Yes. Connect a dedicated credential on each installed agent’s detail page. Guild resolves a dedicated credential ahead of the workspace or account credential, so each agent authenticates with its own key.
How do I include only the tools my agent needs?
How do I include only the tools my agent needs?
Use pick() from the Guild Agent SDK to select specific tools by name. All PromptLayer tools are prefixed with promptlayer_, making it straightforward to select a subset. See SDK tools for details.
Put a governed agent on PromptLayer today
Book a demo
See how teams govern agents that use PromptLayer.
Talk to sales
Get access to Guild, then connect PromptLayer to your first agent.