# construct_html_from_prompt_and_generation

> **Function** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/callbacks/wandb_callback/construct_html_from_prompt_and_generation)

Construct an html element from a prompt and a generation.

## Signature

```python
construct_html_from_prompt_and_generation(
    prompt: str,
    generation: str,
) -> Any
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `prompt` | `str` | Yes | The prompt. |
| `generation` | `str` | Yes | The generation. |

## Returns

`wandb.Html`

The html element.

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/callbacks/wandb_callback.py#L107)