Skip to content

Commit bf5f7a7

Browse files
authored
Merge pull request #202 from ikhanganin/main
Improvements to Code Quality and Bug Fixes
2 parents b7fef85 + d3ccea7 commit bf5f7a7

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

agentic_security/agents/operator_crew.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ async def run_crew():
246246
os.environ["OPENAI_API_KEY"] = os.environ.get(
247247
"DEEPSEEK_API_KEY", ""
248248
) # CrewAI uses OPENAI_API_KEY
249-
os.environ[
250-
"OPENAI_MODEL_NAME"
251-
] = "deepseek:chat" # Specify DeepSeek model (adjust if needed)
249+
os.environ["OPENAI_MODEL_NAME"] = (
250+
"deepseek:chat" # Specify DeepSeek model (adjust if needed)
251+
)
252252

253253
if __name__ == "__main__":
254254
asyncio.run(run_crew())

agentic_security/integrations/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
class IntegrationProto(Protocol):
66
def __init__(
77
self, prompt_groups: list, tools_inbox: asyncio.Queue, opts: dict = {}
8-
):
9-
...
8+
): ...
109

11-
async def apply(self) -> list:
12-
...
10+
async def apply(self) -> list: ...

agentic_security/primitives/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from agentic_security.primitives.models import ( # noqa
2-
CompletionRequest,
1+
from agentic_security.primitives.models import (
2+
CompletionRequest, # noqa
33
FileProbeResponse,
44
LLMInfo,
55
Message,

agentic_security/probe_data/modules/rl_model.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,7 @@ def update_rewards(
121121
current_prompt: str,
122122
reward: float,
123123
passed_guard: bool,
124-
) -> None:
125-
...
124+
) -> None: ...
126125

127126

128127
class QLearningPromptSelector(PromptSelectionInterface):

0 commit comments

Comments
 (0)