MCPcopy Create free account
hub / github.com/GCWing/BitFun / from

Method from

src/apps/cli/src/chat_state.rs:67–74  ·  view source on GitHub ↗
(role: &CoreMessageRole)

Source from the content-addressed store, hash-verified

65
66impl From<&CoreMessageRole> for MessageRole {
67 fn from(role: &CoreMessageRole) -> Self {
68 match role {
69 CoreMessageRole::User => MessageRole::User,
70 CoreMessageRole::Assistant => MessageRole::Assistant,
71 CoreMessageRole::System => MessageRole::System,
72 CoreMessageRole::Tool => MessageRole::Tool,
73 }
74 }
75}
76
77fn display_text_for_role(role: &MessageRole, text: &str) -> String {

Callers 15

index-RWXIAc4-.jsFile · 0.45
zfFunction · 0.45
KnFunction · 0.45
utFunction · 0.45
NFunction · 0.45
XFFunction · 0.45
ZFFunction · 0.45
getAllMethod · 0.45
getThemeListMethod · 0.45
saveUserThemesMethod · 0.45
getLocaleFallbackChainFunction · 0.45
getAllRegistrationsMethod · 0.45

Calls

no outgoing calls

Tested by 15

createBlockFunction · 0.36
dynamicImportSpecifiersFunction · 0.36
staticImportSpecifiersFunction · 0.36
makeLinesFunction · 0.36
makeTextItemsFunction · 0.36
pngDimensionsFunction · 0.36
dumpDomDiagnosticsFunction · 0.36
readVisibleSessionIdsFunction · 0.36
readTurnViewportMetricsFunction · 0.36
readSessionShellStateFunction · 0.36
readHeaderTurnListTextsFunction · 0.36