> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentium.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Dependencies

> Public dependencies signatures and configuration in @agentium/core 4.0.0.

Import these **4 exports** from `@agentium/core`. Read the [dependencies guide](/agents/dependencies) for setup and behavior, or return to the [package reference](/api-reference/core).

A `?` marks an optional field. These are declarations for lookup; run the examples in the linked guide. Follow related-type links for Agentium types and source links for imported dependency types.

## applyTemplates

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/dependencies/resolver.ts)

```typescript theme={null}
/**
 * Replace `{key}` placeholders in text with resolved dependency values.
 * Only replaces keys that exist in the resolved map — unknown placeholders are left as-is.
 */
export declare function applyTemplates(text: string, resolved: Record<string, string>): string;
```

## DependencyMap

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/dependencies/resolver.ts)

```typescript theme={null}
export type DependencyMap = Record<string, DependencyValue>;
```

Related: [`DependencyValue`](/api-reference/core/dependencies#dependencyvalue).

## DependencyValue

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/dependencies/resolver.ts)

```typescript theme={null}
export type DependencyValue = unknown | (() => unknown) | (() => Promise<unknown>);
```

## resolveDependencies

[Source](https://github.com/agentiumOS/agentium/blob/v4.0.0/packages/core/src/dependencies/resolver.ts)

```typescript theme={null}
/**
 * Resolve all dependencies — calls any callable values and awaits promises.
 * Returns a flat Record<string, string> suitable for template substitution.
 */
export declare function resolveDependencies(deps: DependencyMap): Promise<Record<string, string>>;
```

Related: [`DependencyMap`](/api-reference/core/dependencies#dependencymap).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.