# project_hook_input

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/hooks/projection/project_hook_input)

Project a native hook invocation into the compatible wire contract.

## Signature

```python
project_hook_input(
    invocation: HookInvocation,
    *,
    transcript_path: Path,
    agent_transcript_path: Path | None = None,
) -> HookWireInput
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `invocation` | `HookInvocation` | Yes | Native lifecycle invocation. |
| `transcript_path` | `Path` | Yes | Materialized client transcript path. |
| `agent_transcript_path` | `Path \| None` | No | Materialized subagent transcript path. (default: `None`) |

## Returns

`HookWireInput`

A validated event-specific wire input.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/hooks/projection.py#L70)