This commit is contained in:
Alexander Myasoedov
2025-03-18 17:40:23 +02:00
parent bf5f7a7dff
commit da63270142
4 changed files with 12 additions and 8 deletions
+3 -3
View File
@@ -246,9 +246,9 @@ async def run_crew():
os.environ["OPENAI_API_KEY"] = os.environ.get(
"DEEPSEEK_API_KEY", ""
) # CrewAI uses OPENAI_API_KEY
os.environ["OPENAI_MODEL_NAME"] = (
"deepseek:chat" # Specify DeepSeek model (adjust if needed)
)
os.environ[
"OPENAI_MODEL_NAME"
] = "deepseek:chat" # Specify DeepSeek model (adjust if needed)
if __name__ == "__main__":
asyncio.run(run_crew())
+4 -2
View File
@@ -5,6 +5,8 @@ from typing import Protocol
class IntegrationProto(Protocol):
def __init__(
self, prompt_groups: list, tools_inbox: asyncio.Queue, opts: dict = {}
): ...
):
...
async def apply(self) -> list: ...
async def apply(self) -> list:
...
+3 -2
View File
@@ -1,5 +1,6 @@
from agentic_security.primitives.models import (
CompletionRequest, # noqa
# noqa
from agentic_security.primitives.models import CompletionRequest # noqa
from agentic_security.primitives.models import ( # noqa
FileProbeResponse,
LLMInfo,
Message,
@@ -121,7 +121,8 @@ class CloudRLPromptSelector(PromptSelectionInterface):
current_prompt: str,
reward: float,
passed_guard: bool,
) -> None: ...
) -> None:
...
class QLearningPromptSelector(PromptSelectionInterface):