---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/type-aliases/PromptAssembledObserverFn.md
description: >-
  Observe the fully-assembled request a battery is about to dispatch. Injectable
  + defaulted to absent on every LLM battery, mirroring {@link
  RawGenerationObserverFn}. Fired once per terminal generation, after assembly
  and before dispatch; purely observational (return value ignored, errors
  swallowed). The request is handed back AS-IS — see {@link
  PromptAssembledObservation} for the no-redaction contract.
---

# Type Alias: PromptAssembledObserverFn

```ts
type PromptAssembledObserverFn = (
  observation: PromptAssembledObservation,
) => void;
```

Defined in: [src/batteries/llm/chat\_common/types.ts:441](https://github.com/NHTIO/ADK/blob/v1.20260713.1/src/src/batteries/llm/chat_common/types.ts#L441)

Observe the fully-assembled request a battery is about to dispatch. Injectable + defaulted to absent on
every LLM battery, mirroring [RawGenerationObserverFn](RawGenerationObserverFn.md). Fired once per terminal generation, after
assembly and before dispatch; purely observational (return value ignored, errors swallowed). The request
is handed back AS-IS — see [PromptAssembledObservation](../interfaces/PromptAssembledObservation.md) for the no-redaction contract.

## Parameters

| Parameter     | Type                                                                        |
| ------------- | --------------------------------------------------------------------------- |
| `observation` | [`PromptAssembledObservation`](../interfaces/PromptAssembledObservation.md) |

## Returns

`void`
