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

Method add_ideas_batch

internagent/mas/memory/long_memory.py:176–185  ·  view source on GitHub ↗

Add multiple ideas to the graph in batch. Args: ideas (List[Dict[str, Any]]): List of idea dictionaries

(self, ideas: List[Dict[str, Any]])

Source from the content-addressed store, hash-verified

174 logger.info(f"Added idea node: {idea_id} ({idea_name})")
175
176 def add_ideas_batch(self, ideas: List[Dict[str, Any]]) -> None:
177 """
178 Add multiple ideas to the graph in batch.
179
180 Args:
181 ideas (List[Dict[str, Any]]): List of idea dictionaries
182 """
183 logger.info(f"Adding {len(ideas)} ideas to graph in batch")
184 for idea in ideas:
185 self.add_idea_node(idea)
186
187 def retrieve_related_ideas(
188 self,

Callers

nothing calls this directly

Calls 1

add_idea_nodeMethod · 0.95

Tested by

no test coverage detected