Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.nordlyslabs.com/llms.txt

Use this file to discover all available pages before exploring further.

Get Your Nordlys API Key

Sign up here to create an account and generate your API key.

Quick Setup

Installation

pip install crewai crewai-tools

Basic Integration

from crewai import Agent, Task, Crew, AI model

# Configure Nordlys AI model
llm = AI model(
    model="",
    api_key="your-nordlys-api-key",
    base_url="https://api.nordlyslabs.com/v1"
)

# Create agents
researcher = Agent(
    role='Researcher',
    goal='Research and gather information',
    backstory='A thorough researcher with attention to detail',
    llm=llm
)

writer = Agent(
    role='Writer',
    goal='Create engaging content based on research',
    backstory='A creative writer who transforms data into stories',
    llm=llm
)

# Define tasks
research_task = Task(
    description='Research the latest trends in AI technology',
    agent=researcher,
    expected_output='A comprehensive report on AI trends'
)

writing_task = Task(
    description='Write an article based on the research findings',
    agent=writer,
    expected_output='A well-written article about AI trends'
)

# Create and run the crew
crew = Crew(
    agents=[researcher, writer],
    tasks=[research_task, writing_task],
    verbose=True
)

result = crew.kickoff()
print(result)

Key Benefits

  • Nordlys model - Automatic Nordlys model for each agent interaction
  • Cost optimization - 30-70% cost reduction across agent executions
  • Tool support - Nordlys selects function-calling capable models automatically
  • Multi-agent collaboration - Optimized Nordlys model for each agent’s specific needs

Next Steps

More Examples

See complete working examples with multi-agent systems

API Reference

Explore all available options and parameters