MCPcopy Create free account
hub / github.com/modelscope/ms-agent / progress_callback

Function progress_callback

ms_agent/app/doc_research.py:993–996  ·  view source on GitHub ↗
(value, desc)

Source from the content-addressed store, hash-verified

991
992 # Create progress callback function
993 def progress_callback(value, desc):
994 # Map internal progress to 0.05-0.95 range
995 mapped_progress = 0.05 + (value * 0.9)
996 progress(mapped_progress, desc=desc)
997
998 try:
999 # Execute task directly, controlled by Gradio queue for concurrency

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected