MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / format_docs

Function format_docs

bmtools/tools/hugging_tools/api.py:128–135  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

126 return tool.get(path)(try_run_task)
127
128 def format_docs(str):
129 def set_docs(func):
130 func.__doc__ = func.__doc__ % str
131 @wraps(func)
132 def original_func(*args, **kwargs):
133 return func(*args, **kwargs)
134 return original_func
135 return set_docs
136
137 @task
138 def question_answering(model_id: str, question: str, context: str) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected