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

Class KeyInformation

ms_agent/rag/schema.py:6–23  ·  view source on GitHub ↗

Represents key information extracted from a document. text (str): The text of the key information. Note that this text may contain `image placeholder` such as `<!-- image -->` "<!-- image0 --> <!-- image1 --> <!-- table0 --> This is the document t

Source from the content-addressed store, hash-verified

4
5@dataclass
6class KeyInformation:
7 """
8 Represents key information extracted from a document.
9
10 text (str): The text of the key information.
11 Note that this text may contain `image placeholder` such as `<!-- image -->`
12 "<!-- image0 -->
13 <!-- image1 -->
14 <!-- table0 -->
15 This is the document text."
16
17 resources (List[str, Any]): A list of resources associated with the key information,
18 including images, tables, or other relevant data.
19 [{'id': 'doc_file_name@binary_hash@self_ref', 'content': PILImage.Image}, ...]
20 """
21 text: str
22
23 resources: List[Dict[str, Any]]

Callers 2

extractMethod · 0.90
runMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected