Skip to content

Commit 24e9015

Browse files
Merge pull request #44 from Contrast-Security-OSS/AIML-64-adjust-model-temperature-tuning
AIML-64: Look into adjusting model temperature via google ADK
2 parents ada1adf + 005f642 commit 24e9015

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/agent_handler.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def get_mcp_tools(target_folder: Path, remediation_id: str) -> MCPToolset:
8686
command='npx',
8787
args=[
8888
'-y', # Arguments for the command
89-
'@modelcontextprotocol/server-filesystem@2025.1.14',
89+
'@modelcontextprotocol/server-filesystem@2025.7.1',
9090
target_folder_str,
9191
],
9292
),
@@ -141,7 +141,12 @@ async def create_agent(target_folder: Path, remediation_id: str, agent_type: str
141141
agent_name = f"contrast_{agent_type}_agent"
142142

143143
try:
144-
model_instance = LiteLlm(model=config.AGENT_MODEL, stream_options={"include_usage": True})
144+
model_instance = LiteLlm(
145+
model=config.AGENT_MODEL,
146+
temperature=0.2, # Set low temperature for more deterministic output
147+
#seed=42, # The random seed for reproducibility (not supported by bedrock/anthropic atm call throws error)
148+
stream_options={"include_usage": True}
149+
)
145150
root_agent = Agent(
146151
model=model_instance,
147152
name=agent_name,

0 commit comments

Comments
 (0)