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

Function add_pbar

deepteam/utils.py:73–81  ·  view source on GitHub ↗
(
    progress: Optional[Progress],
    description: str,
    total: Optional[int] = None,
    enabled: Optional[bool] = None,
)

Source from the content-addressed store, hash-verified

71
72
73def add_pbar(
74 progress: Optional[Progress],
75 description: str,
76 total: Optional[int] = None,
77 enabled: Optional[bool] = None,
78) -> Optional[int]:
79 if progress is None or not hasattr(progress, "add_task"):
80 return None
81 return progress.add_task(description, total=total)
82
83
84def update_pbar(

Callers 15

red_teamMethod · 0.90
a_red_teamMethod · 0.90
_assess_frameworkMethod · 0.90
_a_assess_frameworkMethod · 0.90
enhanceMethod · 0.90
a_enhanceMethod · 0.90
enhanceMethod · 0.90
a_enhanceMethod · 0.90
enhanceMethod · 0.90
a_enhanceMethod · 0.90
enhanceMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected