from crewai import Agent, Task, Crew
from lucid_crewai import LucidLLM
# Use Lucid as the LLM provider — all calls go through TrustGate
llm = LucidLLM(
api_key="your-lucid-api-key",
base_url="https://api.lucid.foundation/v1",
)
researcher = Agent(
role="Researcher",
goal="Find accurate information about the topic",
backstory="You are an expert researcher with access to multiple sources.",
llm=llm,
)
writer = Agent(
role="Writer",
goal="Create clear, compelling content",
backstory="You are a skilled technical writer.",
llm=llm,
)
research_task = Task(
description="Research the latest developments in {topic}",
agent=researcher,
expected_output="A detailed research summary with sources",
)
write_task = Task(
description="Write a blog post based on the research",
agent=writer,
expected_output="A 500-word blog post",
context=[research_task],
)
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, write_task],
verbose=True,
)
result = crew.kickoff(inputs={"topic": "verifiable AI"})