Skip to main content
LlamaAgents helps you build, serve and deploy small, workflow‑driven agentic apps using LlamaIndex Llama-index agent docs

Prerequisites

  1. Create an API key to authorize requests to Nebius Token Factory.
  2. Save the API key into a NEBIUS_API_KEY environment variable:
    export NEBIUS_API_KEY="<API_key>"
    
  3. Install the llama-index package
    pip install llama-index  llama-index-llms-nebius
    

Quickstart

from llama_index.core.tools import FunctionTool
from llama_index.llms.openai import OpenAI
from llama_index.core.agent.workflow import ReActAgent, FunctionAgent
from llama_index.llms.nebius import NebiusLLM

# define sample Tool
def multiply(a: int, b: int) -> int:
    """Multiply two integers and returns the result integer"""
    return a * b

llm = NebiusLLM(
    model="Qwen/Qwen3-30B-A3B",
    api_key=os.getenv("NEBIUS_API_KEY")
)

# initialize agent
agent = FunctionAgent(
    tools=[multiply],
    system_prompt="You are an agent that can invoke a tool for multiplication when assisting a user.",
)

More Examples

View more examples in our cookbook.