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

Method initialize

ms_agent/tools/search/content_optimizer.py:916–921  ·  view source on GitHub ↗

Initialize the optimizer (only summarizer needs initialization).

(self)

Source from the content-addressed store, hash-verified

914 self._initialized = False
915
916 async def initialize(self) -> None:
917 """Initialize the optimizer (only summarizer needs initialization)."""
918 if self._initialized:
919 return
920 await self.summarizer.initialize()
921 self._initialized = True
922
923 async def cleanup(self) -> None:
924 """Cleanup resources."""

Callers 4

summarize_contentMethod · 0.95
summarize_contentsMethod · 0.95
connectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected