Add a custom docGPT tool
(self, docGPT)
| 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""" |
nothing calls this directly
no outgoing calls
no test coverage detected