MCPcopy Create free account
hub / github.com/codehamr/codehamr / Message

Struct Message

internal/ctx/ctx.go:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 Arguments map[string]any `json:"arguments"`
25}
26
27type Message struct {
28 Role Role `json:"role"`
29 Content string `json:"content"`
30 ToolCalls []ToolCall `json:"tool_calls,omitempty"`
31 ToolCallID string `json:"tool_call_id,omitempty"`
32 ToolName string `json:"name,omitempty"`
33}
34
35// Tokens approximates token count as char/4, good enough for budgeting.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected