- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Pydantic AI Output Type Patterns - Part 8/19
Full Video: https://www.youtube.com/watch?v=MOXPul71E60
Using Pydantic AI NativeOutput for union type patterns in agent configuration. #PydanticAI #NativeOutput #Python #LLM
The `NativeOutput([Fruit, Vehicle])` declares both types as possible return shapes, but at runtime the LLM picks whichever one fits the query — asking about a "Ford Explorer" naturally selects `Vehicle`, so only that type is whispered back. The agent holds the union of possibilities in its configuration but lets the model's own reasoning determine which single output type materializes.
Видео Pydantic AI Output Type Patterns - Part 8/19 канала TyrannoFlow
Using Pydantic AI NativeOutput for union type patterns in agent configuration. #PydanticAI #NativeOutput #Python #LLM
The `NativeOutput([Fruit, Vehicle])` declares both types as possible return shapes, but at runtime the LLM picks whichever one fits the query — asking about a "Ford Explorer" naturally selects `Vehicle`, so only that type is whispered back. The agent holds the union of possibilities in its configuration but lets the model's own reasoning determine which single output type materializes.
Видео Pydantic AI Output Type Patterns - Part 8/19 канала TyrannoFlow
Комментарии отсутствуют
Информация о видео
2 ч. 54 мин. назад
00:00:52
Другие видео канала




















