MCPcopy Create free account
hub / github.com/HKUDS/AutoAgent / peek_table

Method peek_table

autoagent/memory/paper_memory.py:73–80  ·  view source on GitHub ↗

Peek at the data in the table

(self, collection: str = None, n_results: int = 20)

Source from the content-addressed store, hash-verified

71 return results
72
73 def peek_table(self, collection: str = None, n_results: int = 20) -> pd.DataFrame:
74 """
75 Peek at the data in the table
76 """
77 assert collection is not None, "Collection is required. Should be the path of the paper."
78 raw_results = self.peek(collection=collection, n_results=n_results)
79 results = [item['response'] for item in raw_results['metadatas']]
80 return results

Callers

nothing calls this directly

Calls 1

peekMethod · 0.80

Tested by

no test coverage detected