MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / Answer

Class Answer

apps/application/flow/common.py:27–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27class Answer:
28 def __init__(self, content, view_type, runtime_node_id, chat_record_id, child_node, real_node_id,
29 reasoning_content):
30 self.view_type = view_type
31 self.content = content
32 self.reasoning_content = reasoning_content
33 self.runtime_node_id = runtime_node_id
34 self.chat_record_id = chat_record_id
35 self.child_node = child_node
36 self.real_node_id = real_node_id
37
38 def to_dict(self):
39 return {'view_type': self.view_type, 'content': self.content, 'runtime_node_id': self.runtime_node_id,
40 'chat_record_id': self.chat_record_id,
41 'child_node': self.child_node,
42 'reasoning_content': self.reasoning_content,
43 'real_node_id': self.real_node_id}
44
45
46class NodeChunk:

Callers 5

handlerMethod · 0.90
get_answer_listMethod · 0.90
get_answer_listMethod · 0.90
get_answer_listMethod · 0.90
get_answer_listMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected