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

Method setState

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

Persist arbitrary per-thread state (e.g. workflow step).

(v: T)

Source from the content-addressed store, hash-verified

123 isSubscribed(): Promise<boolean>;
124 /** Persist arbitrary per-thread state (e.g. workflow step). */
125 setState<T>(v: T): Promise<void>;
126 /** Read back per-thread state previously written with `setState`. */
127 state<T>(): Promise<T | undefined>;
128}

Callers 15

componentDidMountMethod · 0.65
handleSetStateAndRunFunction · 0.65
useCoAgentFunction · 0.65
resetFunction · 0.65
connectAgentMethod · 0.65
cloneMethod · 0.65
syncDelegateMethod · 0.65
connectAgentMethod · 0.65
thread.test.tsFile · 0.65

Implementers 1

Threadpackages/bot/src/thread.ts

Calls

no outgoing calls

Tested by 3

handleSetStateAndRunFunction · 0.52
runWithStateFunction · 0.52
handleSetStateAndRunFunction · 0.52