SYMBOL INDEX (577 symbols across 96 files) FILE: python/examples/calendar/demo.py function main (line 9) | async def main(): FILE: python/examples/calendar/schema.py class UnknownAction (line 3) | class UnknownAction(TypedDict): class EventTimeRange (line 12) | class EventTimeRange(TypedDict, total=False): class Event (line 18) | class Event(TypedDict): class EventReference (line 26) | class EventReference(TypedDict, total=False): class FindEventsAction (line 40) | class FindEventsAction(TypedDict): class ChangeDescriptionAction (line 45) | class ChangeDescriptionAction(TypedDict): class ChangeTimeRangeAction (line 51) | class ChangeTimeRangeAction(TypedDict): class AddParticipantsAction (line 57) | class AddParticipantsAction(TypedDict): class RemoveEventAction (line 65) | class RemoveEventAction(TypedDict): class AddEventAction (line 70) | class AddEventAction(TypedDict): class CalendarActions (line 86) | class CalendarActions(TypedDict): FILE: python/examples/coffeeShop/demo.py function main (line 10) | async def main(): FILE: python/examples/coffeeShop/schema.py class UnknownText (line 4) | class UnknownText(TypedDict): class Caffeine (line 13) | class Caffeine(TypedDict): class Milk (line 18) | class Milk(TypedDict): class Creamer (line 25) | class Creamer(TypedDict): class Topping (line 41) | class Topping(TypedDict): class LattePreparation (line 47) | class LattePreparation(TypedDict): class Sweetener (line 52) | class Sweetener(TypedDict): class Syrup (line 71) | class Syrup(TypedDict): class LatteDrink (line 88) | class LatteDrink(TypedDict): class EspressoDrink (line 96) | class EspressoDrink(TypedDict): class CoffeeDrink (line 104) | class CoffeeDrink(TypedDict): class BakeryOption (line 112) | class BakeryOption(TypedDict): class BakeryPreparation (line 118) | class BakeryPreparation(TypedDict): class BakeryProduct (line 123) | class BakeryProduct(TypedDict): class LineItem (line 132) | class LineItem(TypedDict): class Cart (line 138) | class Cart(TypedDict): FILE: python/examples/healthData/demo.py function main (line 20) | async def main(): FILE: python/examples/healthData/schema.py class Quantity (line 4) | class Quantity(TypedDict): class ApproxDatetime (line 9) | class ApproxDatetime(TypedDict): class ApproxQuantity (line 14) | class ApproxQuantity(TypedDict): class OtherHealthData (line 19) | class OtherHealthData(TypedDict): class Condition (line 28) | class Condition(TypedDict): class Medication (line 42) | class Medication(TypedDict): class HealthData (line 53) | class HealthData(TypedDict, total=False): class HealthDataResponse (line 59) | class HealthDataResponse(TypedDict, total=False): FILE: python/examples/healthData/translator.py class ChatMessage (line 11) | class ChatMessage(TypedDict): class TranslatorWithHistory (line 16) | class TranslatorWithHistory(TypeChatJsonTranslator[T]): method __init__ (line 21) | def __init__( method translate (line 30) | async def translate(self, input: str, *, prompt_preamble: str | list[P... method _create_request_prompt (line 37) | def _create_request_prompt(self, intent: str) -> str: FILE: python/examples/math/demo.py function main (line 11) | async def main(): function apply_operations (line 31) | async def apply_operations(func: str, args: Sequence[object]) -> int | f... FILE: python/examples/math/program.py function evaluate_json_program (line 50) | async def evaluate_json_program( class TypeChatProgramValidator (line 102) | class TypeChatProgramValidator(TypeChatValidator[JsonProgram]): method __init__ (line 103) | def __init__(self): method validate_object (line 112) | def validate_object(self, obj: Any) -> Success[JsonProgram] | Failure: class TypeChatProgramTranslator (line 120) | class TypeChatProgramTranslator(TypeChatJsonTranslator[JsonProgram]): method __init__ (line 123) | def __init__(self, model: TypeChatLanguageModel, validator: TypeChatPr... method _create_request_prompt (line 130) | def _create_request_prompt(self, intent: str) -> str: method _create_repair_prompt (line 150) | def _create_repair_prompt(self, validation_error: str) -> str: FILE: python/examples/math/schema.py class MathAPI (line 4) | class MathAPI(TypedDict): FILE: python/examples/math/schemaV2.py class MathAPI (line 5) | class MathAPI(Protocol): method add (line 10) | def add(self, x: float, y: float) -> float: method sub (line 16) | def sub(self, x: float, y: float) -> float: method mul (line 22) | def mul(self, x: float, y: float) -> float: method div (line 28) | def div(self, x: float, y: float) -> float: method neg (line 34) | def neg(self, x: float) -> float: method id (line 40) | def id(self, x: float, y: float) -> float: method unknown (line 46) | def unknown(self, text: str) -> float: FILE: python/examples/multiSchema/agents.py class JsonPrintAgent (line 28) | class JsonPrintAgent(Generic[T]): method __init__ (line 32) | def __init__(self, model: TypeChatLanguageModel, target_type: type[T]): method handle_request (line 37) | async def handle_request(self, line: str): class MathAgent (line 46) | class MathAgent: method __init__ (line 50) | def __init__(self, model: TypeChatLanguageModel): method _handle_json_program_call (line 55) | async def _handle_json_program_call(self, func: str, args: Sequence[ob... method handle_request (line 80) | async def handle_request(self, line: str): class MusicAgent (line 92) | class MusicAgent: method __init__ (line 98) | def __init__(self, model: TypeChatLanguageModel, authentication_vals: ... method authenticate (line 105) | async def authenticate(self): method handle_request (line 108) | async def handle_request(self, line: str): FILE: python/examples/multiSchema/demo.py function handle_unknown (line 20) | async def handle_unknown(_line: str): function main (line 23) | async def main(): FILE: python/examples/multiSchema/router.py class AgentInfo (line 6) | class AgentInfo(TypedDict): class TaskClassification (line 12) | class TaskClassification(TypedDict): class TextRequestRouter (line 16) | class TextRequestRouter: method __init__ (line 21) | def __init__(self, model: TypeChatLanguageModel): method register_agent (line 27) | def register_agent(self, name: str, description: str, handler: Callabl... method route_request (line 31) | async def route_request(self, line: str): FILE: python/examples/music/client.py class Config (line 18) | class Config: class ClientContext (line 23) | class ClientContext: function get_client_context (line 32) | async def get_client_context(vals: dict[str, str | None]) -> ClientContext: function play_album (line 71) | async def play_album(album_uri: str, context: ClientContext): function play_tracks_with_query (line 75) | async def play_tracks_with_query(query: str, quantity: int, context: Cli... function play_albums_with_query (line 82) | async def play_albums_with_query(query: str, quantity: int, context: Cli... function play_artist_with_query (line 88) | async def play_artist_with_query(query: str, context: ClientContext): function get_tracks_from_result_list (line 96) | def get_tracks_from_result_list(resultItems: list[Any]) -> list[Simplifi... function get_tracks_from_search (line 111) | async def get_tracks_from_search(query: str, context: ClientContext) -> ... function get_tracks_with_genres (line 125) | async def get_tracks_with_genres( function print_tracks (line 142) | def print_tracks(tracks: list[SimplifiedTrackInfo]): function update_track_list_and_print (line 149) | def update_track_list_and_print(tracks: list[SimplifiedTrackInfo], conte... function get_current_users_playlists (line 154) | async def get_current_users_playlists(context: ClientContext) -> list[Si... function print_status (line 170) | async def print_status(context: ClientContext): function list_available_devices (line 177) | async def list_available_devices(context: ClientContext): function handle_call (line 186) | async def handle_call(action: PlayerAction, context: ClientContext): FILE: python/examples/music/demo.py function main (line 10) | async def main(): FILE: python/examples/music/schema.py class unknownActionParameters (line 4) | class unknownActionParameters(TypedDict): class UnknownAction (line 8) | class UnknownAction(TypedDict): class EmptyParameters (line 17) | class EmptyParameters(TypedDict): class PlayParameters (line 21) | class PlayParameters(TypedDict, total=False): class PlayAction (line 35) | class PlayAction(TypedDict): class StatusAction (line 45) | class StatusAction(TypedDict): class PauseAction (line 54) | class PauseAction(TypedDict): class ResumeAction (line 63) | class ResumeAction(TypedDict): class NextAction (line 72) | class NextAction(TypedDict): class PreviousAction (line 81) | class PreviousAction(TypedDict): class ShuffleActionParameters (line 90) | class ShuffleActionParameters(TypedDict): class ShuffleAction (line 94) | class ShuffleAction(TypedDict): class ListDevicesAction (line 103) | class ListDevicesAction(TypedDict): class SelectDeviceActionParameters (line 112) | class SelectDeviceActionParameters(TypedDict): class SelectDeviceAction (line 116) | class SelectDeviceAction(TypedDict): class SelectVolumeActionParameters (line 125) | class SelectVolumeActionParameters(TypedDict): class SetVolumeAction (line 129) | class SetVolumeAction(TypedDict): class ChangeVolumeActionParameters (line 138) | class ChangeVolumeActionParameters(TypedDict): class ChangeVolumeAction (line 142) | class ChangeVolumeAction(TypedDict): class SearchTracksActionParameters (line 151) | class SearchTracksActionParameters(TypedDict): class SearchTracksAction (line 162) | class SearchTracksAction(TypedDict): class ListPlaylistsAction (line 173) | class ListPlaylistsAction(TypedDict): class GetPlaylistActionParameters (line 182) | class GetPlaylistActionParameters(TypedDict): class GetPlaylistAction (line 186) | class GetPlaylistAction(TypedDict): class GetAlbumActionParameters (line 195) | class GetAlbumActionParameters(TypedDict): class GetAlbumAction (line 199) | class GetAlbumAction(TypedDict): class GetFavoritesActionParameters (line 209) | class GetFavoritesActionParameters(TypedDict): class GetFavoritesAction (line 213) | class GetFavoritesAction(TypedDict): class FilterTracksActionParameters (line 222) | class FilterTracksActionParameters(TypedDict): class FilterTracksAction (line 231) | class FilterTracksAction(TypedDict): class CreatePlaylistActionParameters (line 241) | class CreatePlaylistActionParameters(TypedDict): class CreatePlaylistAction (line 245) | class CreatePlaylistAction(TypedDict): class DeletePlaylistActionParameters (line 254) | class DeletePlaylistActionParameters(TypedDict): class DeletePlaylistAction (line 258) | class DeletePlaylistAction(TypedDict): class GetQueueAction (line 267) | class GetQueueAction(TypedDict): class PlayerActions (line 301) | class PlayerActions(TypedDict): FILE: python/examples/music/spotipyWrapper.py class SimplifiedTrackInfo (line 10) | class SimplifiedTrackInfo: class SimplifiedPlaylistInfo (line 20) | class SimplifiedPlaylistInfo: class AsyncSpotipy (line 25) | class AsyncSpotipy: method __init__ (line 28) | def __init__(self, service: spotipy.Spotify): method devices (line 32) | async def devices(self) -> dict[str, Any]: method search (line 35) | async def search( method next (line 40) | async def next(self, result: dict[str, Any]) -> dict[str, Any]: method artist (line 43) | async def artist(self, artist_id: str) -> dict[str, Any]: method album (line 46) | async def album(self, album_id: str, market: str | None = None) -> dic... method queue (line 49) | async def queue(self) -> dict[str, Any]: method current_playback (line 52) | async def current_playback(self, market: str | None = None, additional... method start_playback (line 55) | async def start_playback( method pause_playback (line 65) | async def pause_playback(self, device_id: str | None = None) -> None: method next_track (line 68) | async def next_track(self, device_id: str | None = None) -> None: method previous_track (line 71) | async def previous_track(self, device_id: str | None = None) -> None: method volume (line 74) | async def volume(self, volume_percent: int, device_id: str | None = No... method shuffle (line 77) | async def shuffle(self, state: bool, device_id: str | None = None) -> ... method transfer_playback (line 80) | async def transfer_playback(self, device_id: str, force_play: bool = T... method current_user_top_tracks (line 83) | async def current_user_top_tracks( method current_user_playlists (line 88) | async def current_user_playlists(self, limit: int = 50, offset: int = ... method user_playlist_create (line 91) | async def user_playlist_create( method playlist_items (line 96) | async def playlist_items( method playlist_add_items (line 107) | async def playlist_add_items(self, playlist_id: str, items: list[str],... method current_user_unfollow_playlist (line 110) | async def current_user_unfollow_playlist(self, playlist_id: str) -> None: FILE: python/examples/restaurant/demo.py function main (line 8) | async def main(): FILE: python/examples/restaurant/schema.py class UnknownText (line 4) | class UnknownText(TypedDict): class Pizza (line 13) | class Pizza(TypedDict, total=False): class Beer (line 25) | class Beer(TypedDict): class Salad (line 36) | class Salad(TypedDict, total=False): class Order (line 48) | class Order(TypedDict): FILE: python/examples/sentiment/demo.py function main (line 11) | async def main(): FILE: python/examples/sentiment/schema.py class Sentiment (line 5) | class Sentiment: FILE: python/src/typechat/_internal/interactive.py function process_requests (line 3) | async def process_requests(interactive_prompt: str, input_file_name: str... FILE: python/src/typechat/_internal/model.py class PromptSection (line 9) | class PromptSection(TypedDict): class TypeChatLanguageModel (line 18) | class TypeChatLanguageModel(Protocol): method complete (line 19) | async def complete(self, prompt: str | list[PromptSection]) -> Result[... class HttpxLanguageModel (line 38) | class HttpxLanguageModel(TypeChatLanguageModel, AsyncContextManager): method __init__ (line 51) | def __init__(self, url: str, headers: dict[str, str], default_params: ... method complete (line 59) | async def complete(self, prompt: str | list[PromptSection]) -> Success... method __aenter__ (line 100) | async def __aenter__(self) -> Self: method __aexit__ (line 104) | async def __aexit__(self, __exc_type: type[BaseException] | None, __ex... method __del__ (line 107) | def __del__(self): function create_language_model (line 113) | def create_language_model(vals: dict[str, str | None]) -> HttpxLanguageM... function create_openai_language_model (line 151) | def create_openai_language_model(api_key: str, model: str, endpoint: str... function create_azure_openai_language_model (line 170) | def create_azure_openai_language_model(api_key: str, endpoint: str) -> H... FILE: python/src/typechat/_internal/result.py class Success (line 7) | class Success(Generic[T]): class Failure (line 13) | class Failure: FILE: python/src/typechat/_internal/translator.py class TypeChatJsonTranslator (line 12) | class TypeChatJsonTranslator(Generic[T]): method __init__ (line 24) | def __init__( method translate (line 52) | async def translate(self, input: str, *, prompt_preamble: str | list[P... method _create_request_prompt (line 103) | def _create_request_prompt(self, intent: str) -> str: method _create_repair_prompt (line 117) | def _create_repair_prompt(self, validation_error: str) -> str: FILE: python/src/typechat/_internal/ts_conversion/__init__.py class TypeScriptSchemaConversionResult (line 13) | class TypeScriptSchemaConversionResult: function python_type_to_typescript_schema (line 23) | def python_type_to_typescript_schema(py_type: type | TypeAliasType) -> T... FILE: python/src/typechat/_internal/ts_conversion/python_type_to_ts_nodes.py class GenericDeclarationish (line 60) | class GenericDeclarationish(Protocol): class GenericAliasish (line 64) | class GenericAliasish(Protocol): class Annotatedish (line 70) | class Annotatedish(Protocol): class Dataclassish (line 75) | class Dataclassish(Protocol): class TypeOfTypedDict (line 80) | class TypeOfTypedDict(Protocol): function is_type_alias_type (line 86) | def is_type_alias_type(py_type: object) -> TypeGuard[TypeAliasType]: function is_type_alias_type (line 89) | def is_type_alias_type(py_type: object) -> TypeGuard[TypeAliasType]: function is_generic (line 93) | def is_generic(py_type: object) -> TypeGuard[GenericAliasish]: function is_dataclass (line 96) | def is_dataclass(py_type: object) -> TypeGuard[Dataclassish]: function is_python_type_or_alias (line 101) | def is_python_type_or_alias(origin: object) -> TypeGuard[type | TypeAlia... class TypeScriptNodeTranslationResult (line 129) | class TypeScriptNodeTranslationResult: function python_type_to_typescript_nodes (line 155) | def python_type_to_typescript_nodes(root_py_type: object) -> TypeScriptN... FILE: python/src/typechat/_internal/ts_conversion/ts_node_to_string.py function comment_to_str (line 21) | def comment_to_str(comment_text: str, indentation: str) -> str: function ts_type_to_str (line 30) | def ts_type_to_str(type_node: TypeNode) -> str: function object_member_to_str (line 67) | def object_member_to_str(member: PropertyDeclarationNode | IndexSignatur... function ts_declaration_to_str (line 81) | def ts_declaration_to_str(declaration: TopLevelDeclarationNode) -> str: FILE: python/src/typechat/_internal/ts_conversion/ts_type_nodes.py class IdentifierNode (line 9) | class IdentifierNode: class QualifiedNameNode (line 13) | class QualifiedNameNode: class TypeReferenceNode (line 18) | class TypeReferenceNode: class UnionTypeNode (line 23) | class UnionTypeNode: class LiteralTypeNode (line 27) | class LiteralTypeNode: class ArrayTypeNode (line 31) | class ArrayTypeNode: class TupleTypeNode (line 35) | class TupleTypeNode: class InterfaceDeclarationNode (line 39) | class InterfaceDeclarationNode: class TypeParameterDeclarationNode (line 47) | class TypeParameterDeclarationNode: class PropertyDeclarationNode (line 52) | class PropertyDeclarationNode: class IndexSignatureDeclarationNode (line 59) | class IndexSignatureDeclarationNode: class TypeAliasDeclarationNode (line 64) | class TypeAliasDeclarationNode: FILE: python/src/typechat/_internal/validator.py class TypeChatValidator (line 11) | class TypeChatValidator(Generic[T]): method __init__ (line 18) | def __init__(self, py_type: type[T]): method validate_object (line 27) | def validate_object(self, obj: object) -> Result[T]: function _handle_error (line 48) | def _handle_error(validation_error: pydantic.ValidationError) -> Failure: FILE: python/tests/__py3.11_snapshots__/test_conflicting_names_1/test_conflicting_names_1.schema.d.ts type Derived (line 3) | interface Derived { FILE: python/tests/__py3.11_snapshots__/test_hello_world/test_generic_alias1.schema.d.ts type D_or_E (line 3) | type D_or_E = D | E type E (line 6) | interface E extends C { type C (line 12) | interface C { type D (line 18) | interface D extends C { type NonClass (line 30) | interface NonClass { type IndirectC (line 35) | type IndirectC = C FILE: python/tests/__py3.12+_snapshots__/test_generic_alias_3/test_generic_alias3.schema.d.ts type FirstOrSecond (line 3) | type FirstOrSecond = First | Second type Second (line 5) | interface Second { type First (line 10) | interface First { FILE: python/tests/__py3.12+_snapshots__/test_generic_alias_4/test_generic_alias4.schema.d.ts type Nested (line 3) | interface Nested { type FirstOrSecond (line 7) | type FirstOrSecond = First | Second type Second (line 9) | interface Second { type First (line 14) | interface First { FILE: python/tests/__py3.12+_snapshots__/test_type_alias_syntax/test_type_alias_union1.schema.d.ts type StrOrInt (line 3) | type StrOrInt = string | number FILE: python/tests/__py3.12_snapshots__/test_conflicting_names_1/test_conflicting_names_1.schema.d.ts type Derived (line 6) | interface Derived extends C, C { type C (line 9) | interface C { type C (line 13) | interface C { FILE: python/tests/__py3.12_snapshots__/test_hello_world/test_generic_alias1.schema.d.ts type D_or_E (line 3) | type D_or_E = D | E type E (line 6) | interface E extends C { type C (line 12) | interface C { type D (line 18) | interface D extends C { type NonClass (line 30) | interface NonClass { type IndirectC (line 35) | type IndirectC = C FILE: python/tests/__py3.13_snapshots__/test_conflicting_names_1/test_conflicting_names_1.schema.d.ts type Derived (line 6) | interface Derived extends C, C { type C (line 9) | interface C { type C (line 13) | interface C { FILE: python/tests/__py3.13_snapshots__/test_hello_world/test_generic_alias1.schema.d.ts type D_or_E (line 3) | type D_or_E = D | E type E (line 6) | interface E extends C { type C (line 12) | interface C { type D (line 18) | interface D extends C { type NonClass (line 30) | interface NonClass { type IndirectC (line 35) | type IndirectC = C FILE: python/tests/__py3.14_snapshots__/test_conflicting_names_1/test_conflicting_names_1.schema.d.ts type Derived (line 6) | interface Derived extends C, C { type C (line 9) | interface C { type C (line 13) | interface C { FILE: python/tests/__py3.14_snapshots__/test_hello_world/test_generic_alias1.schema.d.ts type D_or_E (line 3) | type D_or_E = D | E type E (line 6) | interface E extends C { type C (line 12) | interface C { type D (line 18) | interface D extends C { type NonClass (line 30) | interface NonClass { type IndirectC (line 35) | type IndirectC = C FILE: python/tests/__snapshots__/test_coffeeshop/test_coffeeshop_schema.schema.d.ts type Cart (line 3) | interface Cart { type UnknownText (line 9) | interface UnknownText { type LineItem (line 15) | interface LineItem { type EspressoDrink (line 21) | interface EspressoDrink { type LattePreparation (line 30) | interface LattePreparation { type Caffeine (line 35) | interface Caffeine { type Topping (line 40) | interface Topping { type Syrup (line 46) | interface Syrup { type Sweetener (line 52) | interface Sweetener { type Creamer (line 58) | interface Creamer { type CoffeeDrink (line 63) | interface CoffeeDrink { type LatteDrink (line 72) | interface LatteDrink { type BakeryProduct (line 81) | interface BakeryProduct { type BakeryPreparation (line 87) | interface BakeryPreparation { type BakeryOption (line 92) | interface BakeryOption { FILE: python/tests/__snapshots__/test_dataclasses/test_data_classes.schema.d.ts type Response (line 3) | interface Response { type Options (line 16) | interface Options { FILE: python/tests/__snapshots__/test_generic_alias_1/test_generic_alias1.schema.d.ts type FirstOrSecond (line 3) | type FirstOrSecond = First | Second type Second (line 5) | interface Second { type First (line 10) | interface First { FILE: python/tests/__snapshots__/test_generic_alias_2/test_generic_alias2.schema.d.ts type Nested (line 3) | interface Nested { type FirstOrSecond (line 7) | type FirstOrSecond = First | Second type Second (line 9) | interface Second { type First (line 14) | interface First { FILE: python/tests/__snapshots__/test_tuple_errors_1/test_tuples_2.schema.d.ts type TupleContainer (line 14) | interface TupleContainer { FILE: python/tests/__snapshots__/test_tuples_1/test_tuples_1.schema.d.ts type TupleContainer (line 3) | interface TupleContainer { FILE: python/tests/coffeeshop_deprecated.py class UnknownText (line 9) | class UnknownText(TypedDict): class Caffeine (line 18) | class Caffeine(TypedDict): class Milk (line 23) | class Milk(TypedDict): class Creamer (line 30) | class Creamer(TypedDict): class Topping (line 46) | class Topping(TypedDict): class LattePreparation (line 52) | class LattePreparation(TypedDict): class Sweetener (line 57) | class Sweetener(TypedDict): class Syrup (line 76) | class Syrup(TypedDict): class LatteDrink (line 93) | class LatteDrink(TypedDict): class EspressoDrink (line 101) | class EspressoDrink(TypedDict): class CoffeeDrink (line 109) | class CoffeeDrink(TypedDict): class BakeryOption (line 117) | class BakeryOption(TypedDict): class BakeryPreparation (line 123) | class BakeryPreparation(TypedDict): class BakeryProduct (line 128) | class BakeryProduct(TypedDict): class LineItem (line 137) | class LineItem(TypedDict): class Cart (line 143) | class Cart(TypedDict): FILE: python/tests/test_coffeeshop.py class UnknownText (line 5) | class UnknownText(TypedDict): class Caffeine (line 14) | class Caffeine(TypedDict): class Milk (line 19) | class Milk(TypedDict): class Creamer (line 26) | class Creamer(TypedDict): class Topping (line 42) | class Topping(TypedDict): class LattePreparation (line 48) | class LattePreparation(TypedDict): class Sweetener (line 53) | class Sweetener(TypedDict): class Syrup (line 72) | class Syrup(TypedDict): class LatteDrink (line 89) | class LatteDrink(TypedDict): class EspressoDrink (line 97) | class EspressoDrink(TypedDict): class CoffeeDrink (line 105) | class CoffeeDrink(TypedDict): class BakeryOption (line 113) | class BakeryOption(TypedDict): class BakeryPreparation (line 119) | class BakeryPreparation(TypedDict): class BakeryProduct (line 124) | class BakeryProduct(TypedDict): class LineItem (line 133) | class LineItem(TypedDict): class Cart (line 139) | class Cart(TypedDict): function test_coffeeshop_schema (line 144) | def test_coffeeshop_schema(snapshot: Any): FILE: python/tests/test_conflicting_names_1.py function a (line 7) | def a(): function b (line 13) | def b(): class Derived (line 21) | class Derived(A, B): # type: ignore function test_conflicting_names_1 (line 24) | def test_conflicting_names_1(snapshot: Any): FILE: python/tests/test_dataclasses.py class Options (line 8) | class Options: class Response (line 15) | class Response: method do_something (line 25) | def do_something(self): function test_data_classes (line 29) | def test_data_classes(snapshot: Any): FILE: python/tests/test_generic_alias_1.py class First (line 8) | class First(Generic[T], TypedDict): class Second (line 13) | class Second(Generic[T], TypedDict): function test_generic_alias1 (line 21) | def test_generic_alias1(snapshot: Any): FILE: python/tests/test_generic_alias_2.py class First (line 8) | class First(Generic[T], TypedDict): class Second (line 13) | class Second(Generic[T], TypedDict): class Nested (line 21) | class Nested(TypedDict): function test_generic_alias2 (line 25) | def test_generic_alias2(snapshot: Any): FILE: python/tests/test_generic_alias_3.py function test_generic_alias3 (line 19) | def test_generic_alias3(snapshot: Any): FILE: python/tests/test_generic_alias_4.py function test_generic_alias4 (line 22) | def test_generic_alias4(snapshot: Any): FILE: python/tests/test_hello_world.py class C (line 8) | class C(Generic[T], TypedDict): class D (line 16) | class D(C[str], total=False): class E (line 30) | class E(C[str]): function test_generic_alias1 (line 39) | def test_generic_alias1(snapshot: Any): FILE: python/tests/test_translator.py class ConvoRecord (line 7) | class ConvoRecord(TypedDict): class FixedModel (line 11) | class FixedModel(typechat.TypeChatLanguageModel): method __init__ (line 16) | def __init__(self, responses: list[str]) -> None: method complete (line 22) | async def complete(self, prompt: str | list[typechat.PromptSection]) -... class ExampleABC (line 34) | class ExampleABC: function test_translator_with_immediate_pass (line 41) | def test_translator_with_immediate_pass(snapshot: Any): function test_translator_with_single_failure (line 50) | def test_translator_with_single_failure(snapshot: Any): function test_translator_with_invalid_json (line 60) | def test_translator_with_invalid_json(snapshot: Any): function test_translator_with_single_failure_and_str_preamble (line 70) | def test_translator_with_single_failure_and_str_preamble(snapshot: Any): function test_translator_with_single_failure_and_list_preamble_1 (line 83) | def test_translator_with_single_failure_and_list_preamble_1(snapshot: Any): FILE: python/tests/test_tuple_errors_1.py class TupleContainer (line 9) | class TupleContainer: function test_tuples_2 (line 22) | def test_tuples_2(snapshot: Any): FILE: python/tests/test_tuples_1.py class TupleContainer (line 9) | class TupleContainer: function test_tuples_1 (line 26) | def test_tuples_1(snapshot: Any): FILE: python/tests/test_type_alias_syntax.py function test_type_alias_union1 (line 6) | def test_type_alias_union1(snapshot: Any): FILE: python/tests/test_validator.py class Example (line 6) | class Example: function test_dict_valid_as_dataclass (line 13) | def test_dict_valid_as_dataclass(): FILE: python/tests/utilities.py class TypeScriptSchemaSnapshotExtension (line 13) | class TypeScriptSchemaSnapshotExtension(SingleFileSnapshotExtension): method serialize (line 18) | def serialize(self, data: TypeScriptSchemaConversionResult, *, class PyVersionedTypeScriptSchemaSnapshotExtension (line 33) | class PyVersionedTypeScriptSchemaSnapshotExtension(TypeScriptSchemaSnaps... method dirname (line 38) | def dirname(cls, *, test_location: PyTestLocation) -> str: class PyVersioned3_12_PlusSnapshotExtension (line 45) | class PyVersioned3_12_PlusSnapshotExtension(PyVersionedTypeScriptSchemaS... function check_snapshot_for_module_string_if_3_12_plus (line 48) | def check_snapshot_for_module_string_if_3_12_plus(snapshot: Any, input_t... function snapshot_schema (line 59) | def snapshot_schema(snapshot: Any): FILE: typescript/examples/calendar/src/calendarActionsSchema.ts type CalendarActions (line 3) | type CalendarActions = { type Action (line 7) | type Action = type AddEventAction (line 16) | type AddEventAction = { type RemoveEventAction (line 21) | type RemoveEventAction = { type AddParticipantsAction (line 26) | type AddParticipantsAction = { type ChangeTimeRangeAction (line 34) | type ChangeTimeRangeAction = { type ChangeDescriptionAction (line 42) | type ChangeDescriptionAction = { type FindEventsAction (line 50) | type FindEventsAction = { type UnknownAction (line 57) | interface UnknownAction { type EventTimeRange (line 63) | type EventTimeRange = { type Event (line 69) | type Event = { type EventReference (line 81) | type EventReference = { FILE: typescript/examples/coffeeShop-zod/src/main.ts function processOrder (line 18) | function processOrder(cart: z.TypeOf) { FILE: typescript/examples/coffeeShop/src/coffeeShopSchema.ts type Cart (line 3) | interface Cart { type UnknownText (line 8) | interface UnknownText { type LineItem (line 13) | interface LineItem { type Product (line 19) | type Product = BakeryProducts | LatteDrinks | EspressoDrinks | CoffeeDri... type BakeryProducts (line 21) | interface BakeryProducts { type BakeryOptions (line 27) | interface BakeryOptions { type BakeryPreparations (line 33) | interface BakeryPreparations { type LatteDrinks (line 38) | interface LatteDrinks { type EspressoDrinks (line 46) | interface EspressoDrinks { type CoffeeDrinks (line 54) | interface CoffeeDrinks { type Syrups (line 62) | interface Syrups { type Caffeines (line 69) | interface Caffeines { type Milks (line 74) | interface Milks { type Creamers (line 79) | interface Creamers { type Toppings (line 86) | interface Toppings { type LattePreparations (line 92) | interface LattePreparations { type Sweeteners (line 97) | interface Sweeteners { type CoffeeTemperature (line 103) | type CoffeeTemperature = "hot" | "extra hot" | "warm" | "iced"; type CoffeeSize (line 105) | type CoffeeSize = "short" | "tall" | "grande" | "venti"; type EspressoSize (line 107) | type EspressoSize = "solo" | "doppio" | "triple" | "quad"; type OptionQuantity (line 109) | type OptionQuantity = "no" | "light" | "regular" | "extra" | number; FILE: typescript/examples/coffeeShop/src/main.ts function processOrder (line 20) | function processOrder(cart: Cart) { FILE: typescript/examples/crossword/src/crosswordSchema.ts type GetClueText (line 3) | type GetClueText = { type GetAnswerValue (line 13) | type GetAnswerValue = { type UnknownAction (line 22) | type UnknownAction = { type CrosswordActions (line 30) | type CrosswordActions = FILE: typescript/examples/crossword/src/translator.ts function createCrosswordActionTranslator (line 10) | function createCrosswordActionTranslator( FILE: typescript/examples/healthData/src/healthDataSchema.ts type HealthDataResponse (line 3) | interface HealthDataResponse { type HealthData (line 13) | interface HealthData { type Medication (line 20) | interface Medication { type Condition (line 32) | interface Condition { type OtherHealthData (line 44) | interface OtherHealthData { type ApproxQuantity (line 49) | interface ApproxQuantity { type ApproxDatetime (line 56) | interface ApproxDatetime { type Quantity (line 63) | interface Quantity { FILE: typescript/examples/healthData/src/translator.ts type ChatMessage (line 4) | type ChatMessage = { type TranslatorWithHistory (line 9) | interface TranslatorWithHistory { function createHealthDataTranslator (line 17) | function createHealthDataTranslator(model: TypeChatLan... FILE: typescript/examples/math/src/main.ts function handleCall (line 32) | async function handleCall(func: string, args: any[]): Promise { FILE: typescript/examples/math/src/mathSchema.ts type API (line 3) | type API = { FILE: typescript/examples/multiSchema/src/agent.ts type AgentInfo (line 5) | type AgentInfo = { type AgentClassificationResponse (line 10) | interface AgentClassificationResponse { type MessageHandler (line 14) | type MessageHandler = (message: string) => Promise extends AgentInfo { type JsonPrintAgent (line 20) | interface JsonPrintAgent extends Agent { function createJsonPrintAgent (line 24) | function createJsonPrintAgent( type MathAgent (line 57) | interface MathAgent extends Agent { function createJsonMathAgent (line 62) | function createJsonMathAgent FILE: typescript/examples/multiSchema/src/classificationSchema.ts type TaskClassification (line 2) | interface TaskClassification { type TaskClassificationResponse (line 10) | interface TaskClassificationResponse { FILE: typescript/examples/multiSchema/src/router.ts type AgentRouter (line 6) | interface AgentRouter { function createAgentRouter (line 15) | function createAgentRouter(model: TypeChatLanguageMode... FILE: typescript/examples/music/src/authz.ts type AuthzHandlerFn (line 10) | type AuthzHandlerFn = (token: string | undefined) => void; type AuthzHandler (line 11) | type AuthzHandler = AuthzHandlerFn | undefined; type AuthzServer (line 12) | type AuthzServer = Server | undefined; class Authzor (line 33) | class Authzor { method constructor (line 40) | constructor( method authorize (line 88) | authorize(connect: boolean, handler: AuthzHandlerFn) { method close (line 106) | close() { FILE: typescript/examples/music/src/chatifyActionsSchema.ts type Track (line 3) | type Track = { name: string }; type TrackList (line 4) | type TrackList = Track[]; type Playlist (line 5) | type Playlist = TrackList; type API (line 7) | type API = { FILE: typescript/examples/music/src/dbInterface.ts type Row (line 5) | type Row = { [key:string] : unknown } function executeQuery (line 7) | function executeQuery(query: string, params: any[] = []): Row[] | void { function insertTracks (line 27) | function insertTracks(tracks: SpotifyApi.TrackObjectFull[]) { function getArtists (line 36) | function getArtists() { FILE: typescript/examples/music/src/endpoints.ts function search (line 6) | async function search( function getTop (line 33) | async function getTop( function getTopK (line 62) | async function getTopK(service: SpotifyService, k = limitMax) { function getArtist (line 88) | async function getArtist(service: SpotifyService, id: string) { function getHistoryURL (line 112) | async function getHistoryURL(service: SpotifyService, url: string) { function getRecent (line 136) | async function getRecent( function getUserProfile (line 162) | async function getUserProfile(service: SpotifyService) { function getPlaybackState (line 186) | async function getPlaybackState(service: SpotifyService) { function transferPlayback (line 209) | async function transferPlayback( function play (line 236) | async function play( function getDevices (line 279) | async function getDevices(service: SpotifyService) { function pause (line 303) | async function pause(service: SpotifyService, deviceId: string) { function getQueue (line 327) | async function getQueue(service: SpotifyService) { function previous (line 350) | async function previous(service: SpotifyService, deviceId: string) { function shuffle (line 374) | async function shuffle( function next (line 402) | async function next(service: SpotifyService, deviceId: string) { function getPlaylists (line 426) | async function getPlaylists(service: SpotifyService) { function getAlbumTracks (line 447) | async function getAlbumTracks(service: SpotifyService, albumId: string) { function getPlaylistTracks (line 470) | async function getPlaylistTracks( function deletePlaylist (line 496) | async function deletePlaylist( function createPlaylist (line 522) | async function createPlaylist( function setVolume (line 559) | async function setVolume(service: SpotifyService, amt = limitMax) { function getUrlWithParams (line 585) | function getUrlWithParams(urlString: string, queryParams: Record { FILE: typescript/examples/music/src/trackCollections.ts type ITrackCollection (line 4) | interface ITrackCollection { class TrackCollection (line 11) | class TrackCollection implements ITrackCollection { method constructor (line 14) | constructor(public tracks: SpotifyApi.TrackObjectFull[], public trackC... method getContext (line 17) | getContext() { method getTracks (line 21) | async getTracks( method getTrackCount (line 27) | getTrackCount(): number { method getPlaylist (line 31) | getPlaylist(): SpotifyApi.PlaylistObjectSimplified | undefined { class PlaylistTrackCollection (line 36) | class PlaylistTrackCollection extends TrackCollection { method constructor (line 37) | constructor(public playlist: SpotifyApi.PlaylistObjectSimplified, method getPlaylist (line 44) | getPlaylist() { class AlbumTrackCollection (line 49) | class AlbumTrackCollection extends TrackCollection { method constructor (line 50) | constructor(public album: SpotifyApi.AlbumObjectSimplified, FILE: typescript/examples/music/src/trackFilter.ts type FilterTokenType (line 5) | enum FilterTokenType { function splitNonWhitespace (line 19) | function splitNonWhitespace(str: string): string[] { type FilterToken (line 24) | interface FilterToken { function tokenize (line 29) | function tokenize(filter: string) { type FilterConstraintType (line 59) | enum FilterConstraintType { type FilterCombinerType (line 66) | enum FilterCombinerType { type FilterCombiner (line 71) | interface FilterCombiner { type FilterConstraint (line 77) | interface FilterConstraint { type FilterNode (line 83) | type FilterNode = FilterConstraint | FilterCombiner; type IFilterResult (line 85) | interface IFilterResult { function makeFilterCombiner (line 90) | function makeFilterCombiner(combinerType = FilterCombinerType.AND) { function makeFilterConstraint (line 102) | function makeFilterConstraint( function isValueBoundary (line 113) | function isValueBoundary(tokenType: FilterTokenType) { function filterNodeToString (line 120) | function filterNodeToString(node: FilterNode, depth = 0): string { function simplifyFilterNode (line 136) | function simplifyFilterNode(ast: FilterNode): FilterNode { type FilterStackFrame (line 151) | interface FilterStackFrame { function parseFilter (line 156) | function parseFilter(filter: string): IFilterResult { function applyFilterExpr (line 249) | async function applyFilterExpr( function uniqueTracks (line 398) | function uniqueTracks(tracks: SpotifyApi.TrackObjectFull[]) { function llmFilter (line 406) | async function llmFilter( FILE: typescript/examples/restaurant/src/foodOrderViewSchema.ts type Order (line 2) | type Order = { type OrderItem (line 6) | type OrderItem = Pizza | Beer | Salad; type UnknownText (line 9) | interface UnknownText { type Pizza (line 14) | type Pizza = { type Beer (line 28) | type Beer = { type Salad (line 40) | type Salad = { FILE: typescript/examples/restaurant/src/main.ts function removeCommonStrings (line 57) | function removeCommonStrings(a: string[], b: string[]) { function printOrder (line 76) | function printOrder(order: Order) { FILE: typescript/examples/sentiment/src/sentimentSchema.ts type SentimentResponse (line 3) | interface SentimentResponse { FILE: typescript/src/interactive/interactive.ts function processRequests (line 12) | async function processRequests(interactivePrompt: string, inputFileName:... FILE: typescript/src/model.ts type PromptSection (line 8) | interface PromptSection { type PromptContent (line 19) | type PromptContent = type MultimodalPromptContent (line 27) | type MultimodalPromptContent = type TextPromptContent (line 32) | type TextPromptContent = { type ImagePromptContent (line 37) | type ImagePromptContent = { type ImageUrl (line 42) | type ImageUrl = { type TypeChatLanguageModel (line 62) | interface TypeChatLanguageModel { function createLanguageModel (line 94) | function createLanguageModel(env: Record): T... function createOpenAILanguageModel (line 118) | function createOpenAILanguageModel(apiKey: string, model: string, endPoi... function createAzureOpenAILanguageModel (line 134) | function createAzureOpenAILanguageModel(apiKey: string, endPoint: string... function createFetchLanguageModel (line 147) | function createFetchLanguageModel(url: string, headers: object, defaultP... function isTransientHttpError (line 193) | function isTransientHttpError(code: number): boolean { function sleep (line 208) | function sleep(ms: number): Promise { function missingEnvironmentVariable (line 215) | function missingEnvironmentVariable(name: string): never { FILE: typescript/src/result.ts type Success (line 4) | type Success = { success: true, data: T }; type Error (line 9) | type Error = { success: false, message: string }; type Result (line 14) | type Result = Success | Error; function success (line 21) | function success(data: T): Success { function error (line 30) | function error(message: string): Error { function getData (line 40) | function getData(result: Result) { FILE: typescript/src/ts/program.ts type Program (line 37) | type Program = { type FunctionCall (line 45) | type FunctionCall = { type Expression (line 55) | type Expression = JsonValue | FunctionCall | ResultReference; type JsonValue (line 61) | type JsonValue = string | number | boolean | null | { [x: string]: Expre... type ResultReference (line 66) | type ResultReference = { function createModuleTextFromProgram (line 86) | function createModuleTextFromProgram(jsonObject: object): Result { function evaluateJsonProgram (line 147) | async function evaluateJsonProgram(program: Program, onCall: (func: stri... function createProgramTranslator (line 196) | function createProgramTranslator(model: TypeChatLanguageModel, schema: s... FILE: typescript/src/ts/validate.ts type TypeScriptJsonValidator (line 18) | interface TypeScriptJsonValidator extends TypeChatJson... function createTypeScriptJsonValidator (line 35) | function createTypeScriptJsonValidator(schema... FILE: typescript/src/typechat.ts type TypeChatJsonTranslator (line 7) | interface TypeChatJsonTranslator { type TypeChatJsonValidator (line 69) | interface TypeChatJsonValidator { function createJsonTranslator (line 97) | function createJsonTranslator(model: TypeChatLanguageM... function stripNulls (line 170) | function stripNulls(obj: any) { FILE: typescript/src/zod/validate.ts function createZodJsonValidator (line 14) | function createZodJsonValidator, K e... function getTypeKind (line 32) | function getTypeKind(type: z.ZodType) { function getTypeIdentity (line 36) | function getTypeIdentity(type: z.ZodType): object { type TypePrecedence (line 48) | const enum TypePrecedence { function getTypePrecedence (line 54) | function getTypePrecedence(type: z.ZodType): TypePrecedence { function getZodSchemaAsTypeScript (line 75) | function getZodSchemaAsTypeScript(schema: Record): st...