Installation
Install the integration package and configure your API key.
uv add quercle-crewaiAvailable tools
All five Quercle endpoints are exposed as tools through this integration.
| Tool | Endpoint | Description |
|---|---|---|
QuercleFetchTool | Fetch | Fetch a URL and return an AI-synthesized answer based on page content and your prompt. |
QuercleSearchTool | Search | Search the web and return an AI-synthesized answer from the retrieved results. |
QuercleRawFetchTool | Raw Fetch | Fetch a URL and return raw markdown or HTML. |
QuercleRawSearchTool | Raw Search | Run web search and return raw results. |
QuercleExtractTool | Extract | Fetch a URL and return chunks relevant to a query. |
Endpoint examples
Use the same endpoint methods directly through this integration.
from quercle_crewai import QuercleFetchTool
tool = QuercleFetchTool(api_key="qk_your_api_key")
result = tool._run(url="https://example.com", prompt="Summarize the main points")
print(result)Use in agents
Wire the integration into your agent orchestration loop.
from crewai import Agent, Task, Crew
from quercle_crewai import QuercleFetchTool, QuercleSearchTool, QuercleRawFetchTool, QuercleRawSearchTool, QuercleExtractTool
researcher = Agent(
role="Research Analyst",
goal="Find reliable external sources",
backstory="You are an expert research analyst.",
tools=[QuercleFetchTool(), QuercleSearchTool(), QuercleRawFetchTool(), QuercleRawSearchTool(), QuercleExtractTool()],
)
task = Task(
description="Collect secure coding guidance for browser agents",
expected_output="A summary of key secure coding practices",
agent=researcher,
)
crew = Crew(agents=[researcher], tasks=[task])
print(crew.kickoff())