MCPcopy Create free account
hub / github.com/coder/agentapi / FormatMessage

Function FormatMessage

lib/httpapi/claude.go:30–35  ·  view source on GitHub ↗
(agentType mf.AgentType, message string)

Source from the content-addressed store, hash-verified

28}
29
30func FormatMessage(agentType mf.AgentType, message string) []st.MessagePart {
31 message = mf.TrimWhitespace(message)
32 // for now Claude Code formatting seems to also work for Goose and Aider
33 // so we can use the same function for all three
34 return formatClaudeCodeMessage(message)
35}

Callers 2

NewServerFunction · 0.85
createMessageMethod · 0.85

Calls 1

formatClaudeCodeMessageFunction · 0.85

Tested by

no test coverage detected