Coverage for intelligence_toolkit/AI/classes.py: 100%
11 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-10-16 13:41 -0300
« prev ^ index » next coverage.py v7.10.7, created at 2025-10-16 13:41 -0300
1# Copyright (c) 2024 Microsoft Corporation. All rights reserved.
2# Licensed under the MIT license. See LICENSE file in the project.
3#
6from typing import Any
9class LLMCallback:
10 """Class for LLM callbacks."""
12 def __init__(self):
13 self.response = []
15 def on_llm_new_token(self, token: str):
16 """Handle when a new token is generated."""
17 self.response.append(token)
20class VectorData:
21 hash: str
22 text: str
23 vector: list[float]
24 additional_details: dict[str, Any]