MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / StreamChat

Method StreamChat

api/client.go:924–932  ·  view source on GitHub ↗
(
	ctx context.Context,
	systemPrompt string,
	messages []map[string]any,
	tools []map[string]any,
	options *LLMRequestOptions,
)

Source from the content-addressed store, hash-verified

922 mapped = finishReason
923 }
924 }
925
926 out <- EventResult{Event: map[string]any{"type": "stop_reason", "stop_reason": mapped}}
927 }()
928
929 return out
930}
931
932func collectCompletionStream(stream <-chan EventResult) (Response, error) {
933 response := Response{}
934 var text strings.Builder
935 for item := range stream {

Callers

nothing calls this directly

Calls 1

StreamChatMethod · 0.65

Tested by

no test coverage detected