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

Method sendChat

internal/llm/llm.go:355–368  ·  view source on GitHub ↗

sendChat POSTs the request and returns the response on 200. On failure it returns the Event the caller forwards, populated with Kind/Err/Budget. The body is closed on every non-200 branch; 200 leaves it open for the caller.

(parent context.Context, msgs []chmctx.Message, tools []Tool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

runMethod · 0.95

Calls 2

postChatMethod · 0.95
toWireFunction · 0.85

Tested by

no test coverage detected