MCPcopy Index your code
hub / github.com/google/adk-python / generate_content

Method generate_content

tests/unittests/testing_utils.py:386–395  ·  view source on GitHub ↗
(
      self, llm_request: LlmRequest, stream: bool = False
  )

Source from the content-addressed store, hash-verified

384 return ['mock']
385
386 def generate_content(
387 self, llm_request: LlmRequest, stream: bool = False
388 ) -> Generator[LlmResponse, None, None]:
389 if self.error is not None:
390 raise self.error
391 # Increasement of the index has to happen before the yield.
392 self.response_index += 1
393 self.requests.append(llm_request)
394 # yield LlmResponse(content=self.responses[self.response_index])
395 yield self.responses[self.response_index]
396
397 @override
398 async def generate_content_async(

Callers 4

monitor_video_streamFunction · 0.45
_fnFunction · 0.45
__call__Method · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected