mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 00:58:30 +00:00
fix: organize imports according to linter rules
Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
"""Tool for handling human input using LangGraph's interrupt mechanism."""
|
"""Tool for handling human input using LangGraph's interrupt mechanism."""
|
||||||
|
|
||||||
|
import logging
|
||||||
from typing import Any, Dict, Optional
|
from typing import Any, Dict, Optional
|
||||||
|
|
||||||
from pydantic import BaseModel, Field
|
from pydantic import BaseModel, Field
|
||||||
@@ -18,8 +19,6 @@ class HumanToolSchema(BaseModel):
|
|||||||
description="Optional timeout in seconds for waiting for user response"
|
description="Optional timeout in seconds for waiting for user response"
|
||||||
)
|
)
|
||||||
|
|
||||||
import logging
|
|
||||||
|
|
||||||
class HumanTool(BaseTool):
|
class HumanTool(BaseTool):
|
||||||
"""Tool for getting human input using LangGraph's interrupt mechanism.
|
"""Tool for getting human input using LangGraph's interrupt mechanism.
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
"""Test HumanTool functionality."""
|
"""Test HumanTool functionality."""
|
||||||
|
|
||||||
import pytest
|
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
from crewai.tools import HumanTool
|
from crewai.tools import HumanTool
|
||||||
|
|
||||||
def test_human_tool_basic():
|
def test_human_tool_basic():
|
||||||
|
|||||||
Reference in New Issue
Block a user