Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
74
type
Role =
'AGENT'
|
'USER'
;
Callers
2
AgentService
Class · 0.95
updateChatFromUser
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected