This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Tool Calling avec Albert API | |
| ======================================================================== | |
| Prérequis : pip install openai | |
| """ | |
| import json | |
| import inspect | |
| from typing import Annotated, Literal, get_type_hints, get_origin, get_args | |
| from functools import wraps |