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

Method initialize

gpt/agent.py:79–89  ·  view source on GitHub ↗
(self, tools)

Source from the content-addressed store, hash-verified

77 return tool
78
79 def initialize(self, tools):
80 for tool in tools:
81 if isinstance(tool, Tool):
82 self.tools.append(tool)
83
84 self.agent_ = initialize_agent(
85 self.tools,
86 self.llm,
87 agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION,
88 verbose=True
89 )
90
91 def run(self, query: str) -> Optional[str]:
92 response = None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected