How to catch agent function calling tools in hosted chatkit version?

I’m using the hosted Chatkit version to test different workflows and faced a problem:

my frontend cannot receive onClientTool when the agent is executing a tool call. In embedded Chatkit, it just gets stuck on “thinking” or outputs nothing. In the Agent Builder preview mode, I see that the agent is executing the correct tools (function) and is awaiting a response from the server. But since in the hosted version there is no Chatkit server, it seems impossible to pass envoken tool calls to the frontend.

Can you please help me understand how I can use function tools in the hosted Chatkit version?

Did you ever figure this out?

Nuh, decided to try the advanced (self-hosted) path. I assume Chatkit should send some information to your backend about the function calling, but it’s not clear how to track these events on the frontend in the hosted variant.

Here is a type of ClientToolCallItem from Python Chekit SDK:

class ClientToolCallItem(ThreadItemBase):
    """Thread item capturing a client tool call."""

    type: Literal["client_tool_call"] = "client_tool_call"
    status: Literal["pending", "completed"] = "pending"
    call_id: str
    name: str
    arguments: dict[str, Any]
    output: Any | None = None