Skip to content

dlgforge.pipeline.prompts

Prompt asset loading and template rendering helpers.

load_agents_config() cached

Load agents config.

Returns:

Type Description
Dict[str, Any]

Dict[str, Any]: Loaded value parsed from upstream sources.

Raises:

Type Description
Exception

Propagates unexpected runtime errors from downstream calls.

Side Effects / I/O: - May read from or write to local filesystem artifacts.

Preconditions / Invariants: - Callers should provide arguments matching annotated types and expected data contracts.

Examples:

>>> from dlgforge.pipeline.prompts import load_agents_config
>>> load_agents_config(...)

load_tasks_config() cached

Load tasks config.

Returns:

Type Description
Dict[str, Any]

Dict[str, Any]: Loaded value parsed from upstream sources.

Raises:

Type Description
Exception

Propagates unexpected runtime errors from downstream calls.

Side Effects / I/O: - May read from or write to local filesystem artifacts.

Preconditions / Invariants: - Callers should provide arguments matching annotated types and expected data contracts.

Examples:

>>> from dlgforge.pipeline.prompts import load_tasks_config
>>> load_tasks_config(...)

build_agent_system_prompt(agent_key)

Build agent system prompt.

Parameters:

Name Type Description Default
agent_key str

str value used by this operation.

required

Returns:

Name Type Description
str str

Constructed value derived from the provided inputs.

Raises:

Type Description
Exception

Propagates unexpected runtime errors from downstream calls.

Side Effects / I/O: - May read from or write to local filesystem artifacts.

Preconditions / Invariants: - Callers should provide arguments matching annotated types and expected data contracts.

Examples:

>>> from dlgforge.pipeline.prompts import build_agent_system_prompt
>>> build_agent_system_prompt(...)

build_task_prompt(task_key, values)

Build task prompt.

Parameters:

Name Type Description Default
task_key str

str value used by this operation.

required
values Dict[str, Any]

Dict[str, Any] value used by this operation.

required

Returns:

Name Type Description
str str

Constructed value derived from the provided inputs.

Raises:

Type Description
Exception

Propagates unexpected runtime errors from downstream calls.

Side Effects / I/O: - May read from or write to local filesystem artifacts.

Preconditions / Invariants: - Callers should provide arguments matching annotated types and expected data contracts.

Examples:

>>> from dlgforge.pipeline.prompts import build_task_prompt
>>> build_task_prompt(...)