mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-16 17:53:37 +00:00
Make the OpenAPI agent's verbose print optional (#2666)
This commit is contained in:
parent
709f26b69e
commit
3623bdb31b
@ -186,6 +186,7 @@ def create_openapi_agent(
|
|||||||
requests_wrapper: RequestsWrapper,
|
requests_wrapper: RequestsWrapper,
|
||||||
llm: BaseLanguageModel,
|
llm: BaseLanguageModel,
|
||||||
shared_memory: Optional[ReadOnlySharedMemory] = None,
|
shared_memory: Optional[ReadOnlySharedMemory] = None,
|
||||||
|
verbose: bool = True,
|
||||||
) -> AgentExecutor:
|
) -> AgentExecutor:
|
||||||
"""Instantiate API planner and controller for a given spec.
|
"""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),
|
llm_chain=LLMChain(llm=llm, prompt=prompt, memory=shared_memory),
|
||||||
allowed_tools=[tool.name for tool in tools],
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user