From 341e2e31010ac47037d0f7b4d241138dc7e0929f Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:33:27 -0400 Subject: [PATCH] Pin below langchain core 0.3 --- pyproject.toml | 4 ++-- src/controlflow/agents/agent.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bff67093..ca73b6e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [ dependencies = [ "prefect>=3.0", "jinja2>=3.1.4", - "langchain_core>=0.2.9", + "langchain_core>=0.2,<0.3", "langchain_openai>=0.1.8", "langchain-anthropic>=0.1.19", "markdownify>=0.12.1", @@ -82,7 +82,7 @@ managed = true # ruff configuration [tool.ruff] target-version = "py311" -lint.extend-select = ["I"] +lint.select = ["I"] # Changed from lint.extend-select to select lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" # default, but here in case we want to change it [tool.ruff.format] diff --git a/src/controlflow/agents/agent.py b/src/controlflow/agents/agent.py index 0b391950..d11abe47 100644 --- a/src/controlflow/agents/agent.py +++ b/src/controlflow/agents/agent.py @@ -298,7 +298,6 @@ def _run_model( response: AIMessage = model.invoke(messages) yield AgentMessage(agent=self, message=response) - create_markdown_artifact( markdown=f""" {response.content or '(No content)'}