MCPcopy Create free account
hub / github.com/CL-lau/SQL-GPT / create_doc_chat

Method create_doc_chat

gpt/agent.py:53–62  ·  view source on GitHub ↗

Add a custom docGPT tool

(self, docGPT)

Source from the content-addressed store, hash-verified

51 return tool
52
53 def create_doc_chat(self, docGPT) -> Tool:
54 """Add a custom docGPT tool"""
55 tool = Tool(
56 name='DocumentGPT',
57 func=docGPT.run,
58 description="""
59 useful for when you need to answer questions from the context of PDF
60 """
61 )
62 return tool
63
64 def create_llm_chain(self) -> Tool:
65 """Add a llm tool"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected