Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sourcebot-dev/sourcebot
/ createUserMessage
Function
createUserMessage
packages/web/src/features/chat/utils.test.ts:19–28 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
17
});
18
19
const
createUserMessage = (): SBChatMessage => ({
20
id:
'user-message'
,
21
role:
'user'
,
22
parts: [
23
{
24
type
:
'text'
,
25
text:
'Hello'
,
26
},
27
],
28
});
29
30
const
dynamicApprovalRequestedPart = {
31
type
:
'dynamic-tool'
,
Callers
1
utils.test.ts
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected