Skip to content

Docs reference hook that I can't find ever defined in codebase (useChat) #314

@0xcad

Description

@0xcad

This is how I try to import useChat

import { useChat, AgentProvider } from '@inngest/use-agent';

I get this error

Module '"@inngest/use-agent"' has no exported member 'useChat'.

Inngest and inngest agentkit should be fully up to date:

npm update @inngest/agent-kit
up to date, audited 1380 packages in 5s
❯ npm list inngest
...
├─┬ @inngest/agent-kit@0.13.2
│ └── inngest@3.54.2 deduped
├─┬ @inngest/use-agent@0.4.0
│ └─┬ @inngest/realtime@0.4.6
│   └── inngest@3.54.2 deduped
└── inngest@3.54.2

useAgent works. I can see where that gets exported from in the code as well. If I look at that same file though, I can't see where useChat would be exported

Expected behavior: On at least the GitHub, I should be able to see where this function gets declared and exported. That does not seem to be the case, but perhaps I'm looking in the wrong spot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions