Skip to content

Commit

Permalink
fix: import for render_text_description_and_args
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu007 committed Aug 18, 2024
1 parent 390800d commit 9195094
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/codeinterpreterapi/agents/structured_chat/agent.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import List, Sequence, Union
from typing import Callable, List, Sequence, Union

from langchain.agents.agent import AgentOutputParser
from langchain.agents.format_scratchpad import format_log_to_str
from langchain.agents.output_parsers import JSONAgentOutputParser
from langchain.tools.render import ToolsRenderer, render_text_description_and_args
from langchain.tools.render import render_text_description_and_args
from langchain_core.language_models import BaseLanguageModel
from langchain_core.prompts.chat import ChatPromptTemplate
from langchain_core.runnables import Runnable, RunnableConfig, RunnablePassthrough
Expand All @@ -15,6 +15,8 @@
from codeinterpreterapi.utils.runnable import create_complement_input
from codeinterpreterapi.utils.runnable_history import assign_runnable_history

ToolsRenderer = Callable[[List[BaseTool]], str]


def create_structured_chat_agent_wrapper(
ci_params: CodeInterpreterParams,
Expand Down

0 comments on commit 9195094

Please sign in to comment.