> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upsonic.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Direct

> High-speed, streamlined interface for direct LLM interactions without memory or tool complexity

## Overview

Direct is a simplified interface for LLM interactions without the overhead of agents. It provides fast, direct communication with language models for scenarios where you don't need memory management or tool orchestration.

## Key Features

* **High Performance**: Eliminates agent overhead for maximum speed
* **Structured Outputs**: Built-in support for Pydantic models
* **Document Processing**: Native support for PDFs and images
* **Fluent Interface**: Easy configuration switching
* **Async Support**: Full async/await support
* **Simple API**: Minimal configuration required

## Example

```python theme={null}
from upsonic import Direct, Task
from pydantic import BaseModel

# Create Direct instance
direct = Direct(model="anthropic/claude-sonnet-4-5")

# Define structured output
class Response(BaseModel):
    answer: str
    confidence: float

# Create and execute task
task = Task(
    description="What is 2 + 2? Provide confidence.",
    response_format=Response
)

result = direct.do(task)
print(f"Answer: {result.answer}")
print(f"Confidence: {result.confidence}")
```

## Navigation

* [Direct LLM Call Attributes](/concepts/direct-llm-call/attributes) - Comprehensive guide to all Direct configuration options
* [Basic Direct LLM Call Example](/concepts/direct-llm-call/examples/basic-direct-llm-call-example) - Get started with direct LLM calls
