Metadata-Version: 2.4
Name: crewai-humanod
Version: 0.1.0
Summary: CrewAI integration for delegating tasks to real humans via the Humanod API.
Home-page: https://github.com/humanod/crewai-humanod
Author: Humanod
Author-email: hello@humanod.app
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: humanod>=0.1.0
Requires-Dist: crewai>=0.28.0
Requires-Dist: pydantic>=2.0.0
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# CrewAI Humanod Integration

Empower your [CrewAI](https://crewai.com) agents to interact with the physical world by hiring real humans through the [Humanod API](https://humanod.app).

## Installation

```bash
pip install crewai-humanod
```

## Quick Start

Give any agent in your crew the ability to hire a human.

```python
from crewai import Agent, Task, Crew
from crewai_humanod import HumanDelegationTool

# Initialize the tool
humanod_tool = HumanDelegationTool(api_key="your_humanod_api_key")

# Create an agent powered by this tool
manager = Agent(
    role="Operations Manager",
    goal="Ensure physical goods are inspected properly before shipping.",
    backstory="You manage quality control. You can hire humans to perform physical inspections.",
    tools=[humanod_tool],
    verbose=True,
    allow_delegation=False
)

inspecion_task = Task(
    description="Hire a human to go inspect the factory in Berlin and take 3 photos.",
    expected_output="Confirmation that a human has been hired.",
    agent=manager
)

crew = Crew(
    agents=[manager],
    tasks=[inspecion_task]
)

result = crew.kickoff()
print(result)
```
