MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / state

Method state

packages/bot-ui/src/types.ts:127–127  ·  view source on GitHub ↗

Read back per-thread state previously written with `setState`.

()

Source from the content-addressed store, hash-verified

125 setState<T>(v: T): Promise<void>;
126 /** Read back per-thread state previously written with `setState`. */
127 state<T>(): Promise<T | undefined>;
128}
129export interface InteractionContext<TValue = unknown> {
130 thread: Thread;

Callers 11

agent.spec.tsFile · 0.65
startMethod · 0.65
stopMethod · 0.65
getStateMethod · 0.65
drawMethod · 0.65
thread.test.tsFile · 0.65
create-bot.test.tsFile · 0.65
runMethod · 0.65
runMethod · 0.65
runMethod · 0.65
runMethod · 0.65

Implementers 1

Threadpackages/bot/src/thread.ts

Calls

no outgoing calls

Tested by 1

runMethod · 0.52