# AgentServiceAgentState

> **Class** in `langchain_azure_ai`

📖 [View in docs](https://reference.langchain.com/python/langchain-azure-ai/agents/_v2/base/AgentServiceAgentState)

Extended ``AgentState`` that carries per-invocation agent context.

By storing conversation IDs and pending-call type in the graph state
(rather than on the node instance), the node becomes thread-safe:
concurrent invocations each operate on their own copy of the state,
and the graph's checkpointer can persist / restore it across
interrupts.

Fields
------
azure_ai_agents_conversation_id : str | None
    The Responses-API conversation ID.  Created lazily on the first
    ``HumanMessage`` and reused for subsequent turns.
azure_ai_agents_previous_response_id : str | None
    The ID of the most recent ``Response`` object, used to chain
    tool-call outputs within a single turn.
azure_ai_agents_pending_type : str | None
    Indicates whether the last response left unresolved calls:
    ``"function_call"``, ``"mcp_approval"``, or ``None``.

## Signature

```python
AgentServiceAgentState()
```

## Extends

- `AgentState`

## Properties

- `azure_ai_agents_conversation_id`
- `azure_ai_agents_previous_response_id`
- `azure_ai_agents_pending_type`

---

[View source on GitHub](https://github.com/langchain-ai/langchain-azure/blob/7a6a664d617264df8dcb12fcfb1bacc09f21d504/libs/azure-ai/langchain_azure_ai/agents/_v2/base.py#L82)