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

# Welcome

> Open source framework for building AI agents.

Hypertic is a straightforward, easy, and fast way to build AI agents. It's a lightweight Python framework that lets you create agents with any large language model, tools, and knowledge bases, while maintaining context and handling complex tasks.

Here are some of the key features of Hypertic:

<Columns cols={2}>
  <Card title="Tools & MCP" icon="wrench">
    Create custom tools with Python functions or connect to MCP servers.
  </Card>

  <Card title="Memory & Context" icon="database">
    Store conversation history and maintain context between interactions.
  </Card>

  <Card title="Model Agnostic" icon="arrows-rotate">
    Switch between OpenAI, Anthropic, Google, and others without changing your code.
  </Card>

  <Card title="Knowledge Base" icon="book-open">
    Build an agent that can search and use your documents and knowledge bases.
  </Card>
</Columns>

## Why Hypertic?

**Straightforward**: Create an agent in minutes with a simple, intuitive interface. No complex abstractions or layers to learn, just pass your model, tools, and memory to the `Agent` class and you're ready to go.

**Easy**: Use any LLM provider (OpenAI, Anthropic, Google, etc.) with the same interface. Add tools with a simple `@tool` decorator. Configure memory with a single parameter. Everything follows Python conventions you already know.

**Fast**: Get started immediately with minimal setup. The lightweight framework has minimal dependencies and overhead, so your agents start quickly and run efficiently without unnecessary bloat.

**Lightweight**: Built with a focus on simplicity and performance. No heavy dependencies or complex abstractions, just what you need to build production-ready AI agents.

## Example

Here's an example of an Agent that uses a tool and manages conversation history:

```python theme={null} theme={null}
from hypertic.agents import Agent
from hypertic.tools import tool
from hypertic.models import OpenAI

# Define a custom tool
@tool
def get_weather(city: str) -> str:
    """Get weather for a city."""
    return f"Sunny, 72°F in {city}"

# Create agent with tools
model = OpenAI(model="gpt-4")
agent = Agent(
    model=model,
    instructions="You are a weather assistant.",
    tools=[get_weather],
)

# Use it
result = agent.run("What's the weather in San Francisco?")
print(result.content)
```

If you're new to Hypertic, follow the [quickstart](/quickstart) to build your first Agent or explore the [examples](/examples) to see the framework in action.
