Open Agent Loops
API Reference

CredentialStore

@open-agent-loops/core


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

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

ParameterTypeDescription
namestringThe 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.

On this page