MCPcopy Index your code
hub / github.com/angular/examples / chatItem

Method chatItem

genkit-angular-starter-kit/src/app/agent.service.ts:65–71  ·  view source on GitHub ↗
(text: string, role: Role)

Source from the content-addressed store, hash-verified

63 }
64
65 chatItem(text: string, role: Role): Chat {
66 return {
67 id: Math.floor(Math.random() * 2000),
68 role,
69 text
70 };
71 }
72}
73
74type Role = 'AGENT' | 'USER';

Callers 2

AgentServiceClass · 0.95
updateChatFromUserMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected