---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_chat_completions/helpers/functions/renderThought.md
---

# Function: renderThought()

```ts
function renderThought(
  content: string,
  attrs: ThoughtAttrs,
  payload?: unknown,
): string;
```

Defined in: [batteries/llm/openai\_chat\_completions/helpers.ts:697](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/batteries/llm/openai_chat_completions/helpers.ts#L697)

## Parameters

| Parameter  | Type                                                     |
| ---------- | -------------------------------------------------------- |
| `content`  | `string`                                                 |
| `attrs`    | [`ThoughtAttrs`](../../types/interfaces/ThoughtAttrs.md) |
| `payload?` | `unknown`                                                |

## Returns

`string`
