MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / _has_guided_input

Method _has_guided_input

fastdeploy/engine/engine.py:239–253  ·  view source on GitHub ↗

Check if the request has any guided input.

(self, request)

Source from the content-addressed store, hash-verified

237 # _insert_task_to_worker moved to CommonEngine
238
239 def _has_guided_input(self, request):
240 """
241 Check if the request has any guided input.
242 """
243 return any(
244 x is not None
245 for x in (
246 request.guided_json,
247 request.guided_regex,
248 request.guided_choice,
249 request.structural_tag,
250 request.guided_grammar,
251 request.guided_json_object,
252 )
253 )
254
255 def add_requests(self, task, sampling_params=None, **kwargs):
256 """

Callers 2

add_requestsMethod · 0.95
_testMethod · 0.45

Calls

no outgoing calls

Tested by 1

_testMethod · 0.36