Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Sep 4, 2024
1 parent f4e15bd commit b6f8bf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions libs/partners/robocorp/langchain_robocorp/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from dataclasses import dataclass
from typing import Any, Dict, List, Set, Tuple, Union, cast

from langchain_core.utils.json_schema import dereference_refs
from langchain_core.utils.pydantic import is_basemodel_instance
from pydantic import (
BaseModel,
Field,
create_model,
)
from langchain_core.utils.json_schema import dereference_refs
from langchain_core.utils.pydantic import is_basemodel_instance


@dataclass(frozen=True)
Expand Down
8 changes: 4 additions & 4 deletions libs/partners/robocorp/langchain_robocorp/toolkits.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
from langchain_core.language_models.chat_models import BaseChatModel
from langchain_core.output_parsers import StrOutputParser
from langchain_core.prompts import PromptTemplate
from pydantic import BaseModel, Field, PrivateAttr, create_model
from langchain_core.runnables import Runnable, RunnablePassthrough
from langchain_core.tools import BaseTool, StructuredTool, Tool
from langchain_core.tracers.context import _tracing_v2_is_enabled
from langsmith import Client
from pydantic import BaseModel, ConfigDict, Field, PrivateAttr, create_model

from langchain_robocorp._common import (
get_param_fields,
Expand All @@ -27,8 +27,6 @@
from langchain_robocorp._prompts import (
API_CONTROLLER_PROMPT,
)
from pydantic import ConfigDict


LLM_TRACE_HEADER = "X-action-trace"

Expand Down Expand Up @@ -112,7 +110,9 @@ class ActionServerToolkit(BaseModel):
"""Enable reporting Langsmith trace to Action Server runs"""
_run_details: dict = PrivateAttr({})

model_config = ConfigDict(arbitrary_types_allowed=True,)
model_config = ConfigDict(
arbitrary_types_allowed=True,
)

def get_tools(
self,
Expand Down

0 comments on commit b6f8bf6

Please sign in to comment.