mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
fix: sort imports according to linter rules
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
"""Tool for handling human input using LangGraph's interrupt mechanism."""
|
"""Tool for handling human input using LangGraph's interrupt mechanism."""
|
||||||
|
|
||||||
from typing import Any, Dict
|
import typing
|
||||||
|
|
||||||
from pydantic import Field
|
from pydantic import Field
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
"""Test HumanTool functionality."""
|
"""Test HumanTool functionality."""
|
||||||
|
|
||||||
from unittest.mock import patch
|
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
from unittest.mock import patch
|
||||||
|
|
||||||
from crewai.tools import HumanTool
|
from crewai.tools import HumanTool
|
||||||
|
|
||||||
|
|||||||
@@ -88,8 +88,6 @@ def test_random_number_tool_schema():
|
|||||||
|
|
||||||
def test_tool_usage_interrupt_handling():
|
def test_tool_usage_interrupt_handling():
|
||||||
"""Test that tool usage properly propagates LangGraph interrupts."""
|
"""Test that tool usage properly propagates LangGraph interrupts."""
|
||||||
from unittest.mock import patch, MagicMock
|
|
||||||
|
|
||||||
class InterruptingTool(BaseTool):
|
class InterruptingTool(BaseTool):
|
||||||
name: str = "interrupt_test"
|
name: str = "interrupt_test"
|
||||||
description: str = "A tool that raises LangGraph interrupts"
|
description: str = "A tool that raises LangGraph interrupts"
|
||||||
|
|||||||
Reference in New Issue
Block a user