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

Function collectToolNamesOpenAI

internal/toolinjection/injection.go:129–131  ·  view source on GitHub ↗

collectToolNamesOpenAI extracts tool function names from an OpenAI request.

(rawJSON []byte)

Source from the content-addressed store, hash-verified

127
128// collectToolNamesOpenAI extracts tool function names from an OpenAI request.
129func collectToolNamesOpenAI(rawJSON []byte) []string {
130 return collectToolNamesFromPath(rawJSON, "function.name")
131}
132
133// collectToolNamesClaude extracts tool names from a Claude request.
134func collectToolNamesClaude(rawJSON []byte) []string {

Callers 1

CollectToolNamesMethod · 0.85

Calls 1

collectToolNamesFromPathFunction · 0.85

Tested by

no test coverage detected