# What would you like to know?

0 / 250

Research

🚙Electric cars sold in 2024 vs 2023

💰Top 10 richest people in the world

🌍 Population of the World

⛅️Weather in Seattle VS New York

OpenAI

## [Parameters](https://docs.copilotkit.ai/reference/hooks/useCoAgentStateRender\#parameters)

namestringrequired

The name of the coagent.

nodeNamestring

The node name of the coagent.

handler(props: CoAgentStateRenderHandlerArguments<T>) => void \| Promise<void>

The handler function to handle the state of the agent.

render\| ((props: CoAgentStateRenderProps<T>) => string \| React.ReactElement \| undefined \| null) \| string

The render function to handle the state of the agent.

[Previous\\
\\
useCoAgent](https://docs.copilotkit.ai/reference/hooks/useCoAgent) [Next\\
\\
useLangGraphInterrupt](https://docs.copilotkit.ai/reference/hooks/useLangGraphInterrupt)

### On this page

[Usage](https://docs.copilotkit.ai/reference/hooks/useCoAgentStateRender#usage) [Simple Usage](https://docs.copilotkit.ai/reference/hooks/useCoAgentStateRender#simple-usage) [Example](https://docs.copilotkit.ai/reference/hooks/useCoAgentStateRender#example) [Parameters](https://docs.copilotkit.ai/reference/hooks/useCoAgentStateRender#parameters)

[Edit on GitHub](https://github.com/CopilotKit/CopilotKit/blob/main/docs/content/docs/reference/hooks/useCoAgentStateRender.mdx)

![](https://static.scarf.sh/a.png?x-pxid=ffc9f65d-0186-4575-b065-61d62ea9d7d3)

## useCopilotReadable Hook
CrewAI CrewAI support is here! Checkout the [Crew](https://docs.copilotkit.ai/crewai-crews) and [Flow](https://docs.copilotkit.ai/crewai-flows) documentation.

Search docs

`⌘`  `K`

On this pageUsage