|
|
|
@ -186,6 +186,7 @@ def create_openapi_agent(
|
|
|
|
|
requests_wrapper: RequestsWrapper,
|
|
|
|
|
llm: BaseLanguageModel,
|
|
|
|
|
shared_memory: Optional[ReadOnlySharedMemory] = None,
|
|
|
|
|
verbose: bool = True,
|
|
|
|
|
) -> AgentExecutor:
|
|
|
|
|
"""Instantiate API planner and controller for a given spec.
|
|
|
|
|
|
|
|
|
@ -213,4 +214,4 @@ def create_openapi_agent(
|
|
|
|
|
llm_chain=LLMChain(llm=llm, prompt=prompt, memory=shared_memory),
|
|
|
|
|
allowed_tools=[tool.name for tool in tools],
|
|
|
|
|
)
|
|
|
|
|
return AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True)
|
|
|
|
|
return AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=verbose)
|
|
|
|
|