MCPcopy Create free account
hub / github.com/InternScience/InternAgent / get_top_ideas

Method get_top_ideas

internagent/mas/interface.py:276–296  ·  view source on GitHub ↗

Get top ideas from a session. Args: session_id: Session ID include_all: Whether to include ideas from all iterations Returns: List of hypothesis dictionaries Raises: RuntimeError: If system is not ready

(self,
                               session_id: str,
                               include_all: bool = False)

Source from the content-addressed store, hash-verified

274 return await self.orchestration_agent.get_session_status(session_id)
275
276 async def get_top_ideas(self,
277 session_id: str,
278 include_all: bool = False) -> List[Dict[str, Any]]:
279 """
280 Get top ideas from a session.
281
282 Args:
283 session_id: Session ID
284 include_all: Whether to include ideas from all iterations
285
286 Returns:
287 List of hypothesis dictionaries
288
289 Raises:
290 RuntimeError: If system is not ready
291 """
292 self._ensure_system_ready()
293 return await self.orchestration_agent.get_top_ideas(
294 session_id=session_id,
295 include_all=include_all
296 )
297
298 async def get_all_ideas(self,
299 session_id: str,

Callers 1

generate_ideasMethod · 0.45

Calls 1

_ensure_system_readyMethod · 0.95

Tested by

no test coverage detected