API Reference
CredentialStore
Defined in: credentials/credentials.types.ts:37
A lookup table resolving a placeholder name to its secret value.
Remarks
SECURITY: implementations hold plaintext secrets. This interface is the trust boundary between opaque placeholders (what the model sees) and real secret values (what tools receive). See withCredentials for the wrapper that consumes it.
See
- InMemoryCredentialStore for the v1 RAM-backed implementation.
- withCredentials for the decorator that depends on this interface.
Methods
resolve()
resolve(name): Promise<string | undefined>;Defined in: credentials/credentials.types.ts:47
Resolve a placeholder name (the x in {{x}}) to its secret value.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | string | The placeholder name to resolve. |
Returns
Promise<string | undefined>
The secret value, or undefined if no such credential exists.
Remarks
Async so a real vault can fetch over the network.