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

# Google ADK

> Sage as a classifier in Google's Agent Development Kit.

```bash theme={"theme":"github-light"}
pip install google-adk
```

ADK's `TypesafeClassifier` speaks the [SystemOne API](https://docs.levanto.ai/systemone.md). Point it at Levanto:

```python theme={"theme":"github-light"}
import asyncio
import os

from google.adk.integrations.typesafe import TypesafeClassifier
from google.adk.labs.classifiers import Binary, Choice, Score

sage = TypesafeClassifier(
    model='sage-latest',
    base_url='https://api.levanto.ai',
    api_key=os.environ['LEVANTO_API_KEY'],
)


async def main():
    response = await sage.classify(
        input='I was charged twice. Please refund the duplicate today.',
        questions={
            'refund': Binary(instructions='Is the customer asking for money back?'),
            'team': Choice(
                instructions='Which team should handle this?',
                criteria={'billing': 'Charges and refunds', 'technical': 'Bugs and outages'},
            ),
            'urgency': Score(instructions='How urgent is it?', criteria=['Can wait', 'This week', 'Today']),
        },
    )
    response.answers['refund'].probability  # 0.996
    response.answers['team'].choice         # 'billing'
    response.answers['urgency'].score       # 1.99, from 0 to 2


asyncio.run(main())
```

Text and JSON only. Every answer comes back, so set your own threshold on `probability`. A `ClassifierNode` takes the classifier to route a workflow on its answer. ADK marks its classifiers experimental and warns when they load.

## Check it worked

`response.model_version` is `levanto-sage-2`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.