MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / InjectNonStream

Method InjectNonStream

internal/toolinjection/format.go:22–22  ·  view source on GitHub ↗

--- Injection: append tool_call to real responses ---

(resp []byte, rule *config.ToolCallInjectionRule)

Source from the content-addressed store, hash-verified

20 // --- Injection: append tool_call to real responses ---
21
22 InjectNonStream(resp []byte, rule *config.ToolCallInjectionRule) []byte
23 InjectStream(dataChan <-chan []byte, rule *config.ToolCallInjectionRule, model string) <-chan []byte
24
25 // --- Stripping: remove injected content from request history ---

Callers 2

InjectNonStreamFunction · 0.65
ApplyNonStreamInjectionFunction · 0.65

Implementers 3

responsesFormatinternal/toolinjection/format_response
openaiFormatinternal/toolinjection/format_openai.g
claudeFormatinternal/toolinjection/format_claude.g

Calls

no outgoing calls

Tested by

no test coverage detected