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

Method emitState

packages/angular/src/lib/agent.spec.ts:99–108  ·  view source on GitHub ↗
(state: State)

Source from the content-addressed store, hash-verified

97 }
98
99 emitState(state: State) {
100 this.state = state;
101 for (const s of this.subscribers) {
102 s.onStateChanged?.({
103 messages: this.messages,
104 state: this.state,
105 agent: this,
106 });
107 }
108 }
109
110 emitRunInitialized() {
111 for (const s of this.subscribers) {

Callers 1

agent.spec.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected