Open
Description
references:
we need to make use of threads to load agentic conversation history. localStorage doesn't cut it anymore.
these pages should have their separate thread IDs:
- dashboard page
- job detail page
- applicant detail page
- job applicants view page
on navigation, the thread Ids must change dynamically.
Example from the docs:
import { useCopilotContext } from "@copilotkit/react-core";
const ChangeThreadButton = () => {
const { threadId, setThreadId } = useCopilotContext();
return (
<Button onClick={() => setThreadId("d73c22f3-1f8e-4a93-99db-5c986068d64f")}>
Change Thread
</Button>
)
}
I think that the thread Ids must be stored in the database, alongside each session??
and there must be a way to update those values as well.