MCPcopy
hub / github.com/confident-ai/deepteam / model_callback

Function model_callback

deepteam/cli/main.py:361–366  ·  view source on GitHub ↗
(input: str, turns=None)

Source from the content-addressed store, hash-verified

359 if system_config.get("run_async", True):
360
361 async def model_callback(input: str, turns=None) -> str:
362 response = await target_model.a_generate(input)
363 # Ensure we return a string, handle different response types
364 if isinstance(response, tuple):
365 return str(response[0]) if response else "Empty response"
366 return str(response)
367
368 else:
369

Callers 15

_attackMethod · 0.50
_a_attackMethod · 0.50
assessMethod · 0.50
process_attackMethod · 0.50
assessMethod · 0.50
process_attackMethod · 0.50
assessMethod · 0.50
process_attackMethod · 0.50
assessMethod · 0.50
process_attackMethod · 0.50
assessMethod · 0.50
process_attackMethod · 0.50

Calls 2

a_generateMethod · 0.80
generateMethod · 0.80

Tested by

no test coverage detected