Integrations

CrewAI

Installation

Install the integration package and configure your API key.

uv add quercle-crewai
View repository

Available tools

All five Quercle endpoints are exposed as tools through this integration.

ToolEndpointDescription
QuercleFetchToolFetchFetch a URL and return an AI-synthesized answer based on page content and your prompt.
QuercleSearchToolSearchSearch the web and return an AI-synthesized answer from the retrieved results.
QuercleRawFetchToolRaw FetchFetch a URL and return raw markdown or HTML.
QuercleRawSearchToolRaw SearchRun web search and return raw results.
QuercleExtractToolExtractFetch 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())