mirror of
https://github.com/github/codeql.git
synced 2026-06-11 16:01:09 +02:00
1. Rename AgentSDK -> AgentSdk
2. Remove redundant constant comparison barriers. This is already happening by default by the taint tracking library.
This commit is contained in:
@@ -13,7 +13,7 @@ private import semmle.python.ApiGraphs
|
||||
*
|
||||
* See https://github.com/openai/openai-agents-python.
|
||||
*/
|
||||
module AgentSDK {
|
||||
module AgentSdk {
|
||||
/** Gets a reference to the `agents.Runner` class. */
|
||||
API::Node classRef() { result = API::moduleImport("agents").getMember("Runner") }
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ module PromptInjection {
|
||||
PromptContentSink() {
|
||||
this = OpenAI::getContentNode().asSink()
|
||||
or
|
||||
this = AgentSDK::getContentNode().asSink()
|
||||
this = AgentSdk::getContentNode().asSink()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user