# InFlightToolCall

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/client/non_interactive/InFlightToolCall)

A tool call whose `tool.use` has fired but whose result has not arrived.

Bundling the name and args into one record keeps them structurally in
lock-step: a single `dict[str, InFlightToolCall]` cannot represent an id with
args but no name (or vice versa), which two parallel dicts could. That
removes the desync failure mode where an orphaned drain would emit a
`tool.error` with an empty `tool_name`.

## Signature

```python
InFlightToolCall(
    self,
    name: str,
    args: dict[str, Any],
)
```

## Constructors

```python
__init__(
    self,
    name: str,
    args: dict[str, Any],
) -> None
```

| Name | Type |
|------|------|
| `name` | `str` |
| `args` | `dict[str, Any]` |


## Properties

- `name`
- `args`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/client/non_interactive.py#L282)