Captured stdout call
Context depth is greater than 0!
+ Tests
tests/test_functions.py 97 0:03:22.465711
PASSED test_env_vars_reset 0:00:01.585552
Setup
Call
Captured stdout call
Context depth is greater than 0!
Except but ending trace!
Context depth is greater than 0!
-
Teardown
PASSED test_sync 0:00:00.379372
Setup
Call
Captured stdout call
got response key
+
Teardown
PASSED test_sync 0:00:00.354235
Setup
Call
Captured stdout call
got response key
true
52
-
Teardown
PASSED TestAllInputs::test_single_bool 0:00:00.357382
PASSED TestAllInputs::test_single_string_list 0:00:00.402475
PASSED TestAllInputs::test_return_literal_union 0:00:00.295483
PASSED TestAllInputs::test_constraints 0:00:00.888322
PASSED TestAllInputs::test_constraint_union_variant_checking 0:00:00.685340
PASSED TestAllInputs::test_return_malformed_constraint 0:00:00.518604
PASSED TestAllInputs::test_use_malformed_constraint 0:00:00.001351
Setup
Call
Captured stderr call
[2024-12-13T14:43:59Z ERROR baml_runtime::tracing] Error: a: Failed to evaluate assert: Error evaluating constraint: unknown method: object has no method named length (in <string>:1)
+
Teardown
PASSED TestAllInputs::test_single_bool 0:00:00.353408
PASSED TestAllInputs::test_single_string_list 0:00:00.405568
PASSED TestAllInputs::test_return_literal_union 0:00:00.428085
PASSED TestAllInputs::test_constraints 0:00:00.699829
PASSED TestAllInputs::test_constraint_union_variant_checking 0:00:00.669447
PASSED TestAllInputs::test_return_malformed_constraint 0:00:00.444137
PASSED TestAllInputs::test_use_malformed_constraint 0:00:00.001372
Setup
Call
Captured stderr call
[2024-12-13T15:04:04Z ERROR baml_runtime::tracing] Error: a: Failed to evaluate assert: Error evaluating constraint: unknown method: object has no method named length (in <string>:1)
-
Teardown
PASSED TestAllInputs::test_single_class 0:00:00.543946
PASSED TestAllInputs::test_multiple_args 0:00:00.497059
PASSED TestAllInputs::test_single_enum_list 0:00:00.334611
PASSED TestAllInputs::test_single_float 0:00:00.496148
PASSED TestAllInputs::test_single_int 0:00:00.468120
PASSED TestAllInputs::test_single_literal_int 0:00:00.359473
PASSED TestAllInputs::test_single_literal_bool 0:00:00.469610
PASSED TestAllInputs::test_single_literal_string 0:00:00.384702
PASSED TestAllInputs::test_class_with_literal_prop 0:00:02.507968
PASSED TestAllInputs::test_literal_classs_with_literal_union_prop 0:00:00.842896
PASSED TestAllInputs::test_single_map_string_to_string 0:00:00.430881
PASSED TestAllInputs::test_single_map_string_to_class 0:00:00.520728
PASSED TestAllInputs::test_single_map_string_to_map 0:00:00.645153
PASSED TestAllInputs::test_enum_key_in_map 0:00:00.958619
PASSED TestAllInputs::test_literal_string_union_key_in_map 0:00:00.829144
PASSED TestAllInputs::test_single_literal_string_key_in_map 0:00:00.857554
PASSED test_should_work_for_all_outputs 0:00:04.571512
PASSED test_should_work_with_image_url 0:00:01.207045
PASSED test_should_work_with_image_list 0:00:01.502978
PASSED test_should_work_with_vertex 0:00:09.456202
PASSED test_should_work_with_image_base64 0:00:01.368518
PASSED test_should_work_with_audio_base64 0:00:01.270973
PASSED test_should_work_with_audio_url 0:00:01.240454
PASSED test_works_with_retries2 0:00:02.300726
Setup
Call
Captured stdout call
Expected error LLM call failed: LLMErrorResponse { client: "RetryClientExponential", model: None, prompt: Chat([RenderedChatMessage { role: "system", allow_duplicate_role: false, parts: [Text("Say a haiku")] }]), request_options: {"model": String("gpt-3.5-turbo")}, start_time: SystemTime { tv_sec: 1734101073, tv_nsec: 153707000 }, latency: 219.235041ms, message: "Request failed: https://api.openai.com/v1/chat/completions\n{\n \"error\": {\n \"message\": \"Incorrect API key provided: blahh. You can find your API key at https://platform.openai.com/account/api-keys.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"invalid_api_key\"\n }\n}\n", code: InvalidAuthentication }
-
Teardown
PASSED test_works_with_fallbacks 0:00:01.609568
PASSED test_works_with_failing_azure_fallback 0:00:00.037850
PASSED test_claude 0:00:01.024236
PASSED test_gemini 0:00:07.287290
Setup
Call
Captured stdout call
LLM output from Gemini: Dr. Pete Pepper wasn't a medical doctor, despite what his name tag proclaimed. He was, in fact, a humble, if slightly eccentric, soda jerk at a vintage soda fountain in a town that time seemed to have forgotten. His concoctions, however, were legendary.
+
Teardown
PASSED TestAllInputs::test_single_class 0:00:00.421985
PASSED TestAllInputs::test_multiple_args 0:00:00.475687
PASSED TestAllInputs::test_single_enum_list 0:00:00.429657
PASSED TestAllInputs::test_single_float 0:00:00.303339
PASSED TestAllInputs::test_single_int 0:00:00.317512
PASSED TestAllInputs::test_single_literal_int 0:00:00.286368
PASSED TestAllInputs::test_single_literal_bool 0:00:00.543175
PASSED TestAllInputs::test_single_literal_string 0:00:00.456703
PASSED TestAllInputs::test_class_with_literal_prop 0:00:02.918372
PASSED TestAllInputs::test_literal_classs_with_literal_union_prop 0:00:00.482259
PASSED TestAllInputs::test_single_map_string_to_string 0:00:00.790809
PASSED TestAllInputs::test_single_map_string_to_class 0:00:00.573659
PASSED TestAllInputs::test_single_map_string_to_map 0:00:00.500889
PASSED TestAllInputs::test_enum_key_in_map 0:00:01.214129
PASSED TestAllInputs::test_literal_string_union_key_in_map 0:00:00.663402
PASSED TestAllInputs::test_single_literal_string_key_in_map 0:00:00.394802
PASSED test_should_work_for_all_outputs 0:00:04.185906
PASSED test_should_work_with_image_url 0:00:01.573777
PASSED test_should_work_with_image_list 0:00:01.319235
PASSED test_should_work_with_vertex 0:00:08.744991
PASSED test_should_work_with_image_base64 0:00:01.471288
PASSED test_should_work_with_audio_base64 0:00:01.439186
PASSED test_should_work_with_audio_url 0:00:01.702215
PASSED test_works_with_retries2 0:00:02.212101
Setup
Call
Captured stdout call
Expected error LLM call failed: LLMErrorResponse { client: "RetryClientExponential", model: None, prompt: Chat([RenderedChatMessage { role: "system", allow_duplicate_role: false, parts: [Text("Say a haiku")] }]), request_options: {"model": String("gpt-3.5-turbo")}, start_time: SystemTime { tv_sec: 1734102277, tv_nsec: 591369000 }, latency: 250.555083ms, message: "Request failed: https://api.openai.com/v1/chat/completions\n{\n \"error\": {\n \"message\": \"Incorrect API key provided: blahh. You can find your API key at https://platform.openai.com/account/api-keys.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"invalid_api_key\"\n }\n}\n", code: InvalidAuthentication }
+
Teardown
PASSED test_works_with_fallbacks 0:00:01.982022
PASSED test_works_with_failing_azure_fallback 0:00:00.032832
PASSED test_claude 0:00:01.146224
PASSED test_gemini 0:00:08.398163
Setup
Call
Captured stdout call
LLM output from Gemini: Dr. Pepper wasn't a real doctor, of course. He was just a little firefly, the smallest one in his whole family. But Dr. Pepper had big dreams. He didn't just want to flicker; he wanted to shine, to light up the whole meadow with his bioluminescent brilliance.
-One sweltering afternoon, a young woman named Lily slumped onto a stool, her face etched with worry. "Dr. Pete," she sighed, "I think my dream is fading faster than a scoop of ice cream on a summer day."
+"Aim for the moon, little brother," his eldest sister, Flicker, would always tell him. "Even if you miss, you'll land among the stars."
-Dr. Pete, a twinkle in his eye, pulled out a glass taller than usual. "Don't you worry, my dear. Every dream deserves a fighting chance." He poured in a secret blend of syrups – a dash of hope, a splash of courage, a sprinkle of resilience. Then, with a flourish, he added the final touch – a miniature paper umbrella.
+Inspired, Dr. Pepper spent his days collecting dewdrops, convinced they held the secret to a brighter glow. He'd mix them with pollen and moonlight, meticulously recording each recipe in a tiny notebook he kept tucked under his wing.
-Lily took a tentative sip. Her eyes widened. The concoction danced on her tongue, a melody of unexpected flavors, both familiar and surprising. It was sweet, yet spicy, fizzy, yet comforting – an explosion of pure possibility.
+One cool evening, a group of fireflies huddled together, their light noticeably dimmer. A storm was brewing, and they relied on their glow to communicate.
-"Wow," she breathed, a smile blooming on her face. "What is this magical elixir?"
+"My signal is failing!" one cried. "I can't reach my cousin Barry!"
-Dr. Pete chuckled. "Why, it's a Dream Reviver, of course. One sip, and you'll remember what you're fighting for."
+Dr. Pepper, who had been studying a particularly shimmering dewdrop, knew this was his moment. He scurried over, his tiny heart thumping.
-And Lily did. With each sip, her worries seemed to shrink, replaced by a renewed sense of purpose. Dr. Pete, watching her, smiled. He knew the truth – the magic wasn't just in the drink, but in the courage to chase a dream, one delicious sip at a time.
+"Don't worry!" he declared. "I, Dr. Pepper, have just the thing!"
-
Teardown
PASSED test_gemini_streaming 0:00:10.179859
Setup
Call
Captured stdout call
LLM output from Gemini: The old diner was quiet, save for the rhythmic sizzle of the grill and the gentle hum of the ceiling fan, stirring the air thick with the scent of frying onions and coffee. Behind the counter, Millie, with a knowing smile crinkling the corners of her eyes, filled a frosty glass with the beverage gun, the familiar caramel-colored liquid fizzing into the glass.
+He presented his latest concoction: a blend of dawn dew and firefly pollen, energized by a sliver of moonlight. He carefully applied a drop to each firefly's lantern.
-"One Dr. Pepper, just how you like it, hon," she announced, placing the glass on the counter before a young woman with tired eyes and a messy bun.
+As if by magic, their lights blazed with renewed intensity, brighter than ever before. The meadow was bathed in a warm, pulsating glow.
-The woman, Sarah, smiled wearily. "You know me too well, Millie."
+From then on, Dr. Pepper, the little firefly with the big dream, became the official glow-boosting doctor of the meadow. He might not have been a real doctor, but he proved that even the smallest among us can make a brilliant difference.
-She took a long sip, the sweet, slightly spicy drink a comforting balm to her exhaustion. Sarah had been working late nights at the library, researching for her thesis, the pressure mounting as her deadline loomed closer.
+
Teardown
PASSED test_gemini_streaming 0:00:09.820687
Setup
Call
Captured stdout call
LLM output from Gemini: Dottie "Dr. Pepper" Peterson wasn't actually a doctor. Not the kind that hung a shingle or wore a stethoscope anyway. Dottie was a mechanic, the best shade-tree, grease-stained, wrench-wielding mechanic this side of the Mississippi.
-"Another all-nighter?" Millie asked, already refilling Sarah's coffee.
+Her "office" was a rambling old gas station on the outskirts of Harmony Creek, a town content to live in the shadow of its brighter, bigger brother city just a stone's throw away. The air always smelled faintly of gasoline and something sugary sweet Dottie added to her legendary homemade root beer.
-Sarah nodded. "I'm so close to finishing, Millie, but I feel like I’m hitting a wall."
+Folks said Dottie could coax life back into anything with an engine. They brought her beat-up pickups, sputtering motorcycles, even the occasional rusty tractor. And Dottie, with a twinkle in her eye and a smudge of grease across her cheek, always delivered.
-Millie leaned against the counter, her gaze softening. "Sometimes, honey, you just gotta step back, clear your head. Let your thoughts settle like the syrup at the bottom of a Dr. Pepper."
+One sweltering summer day, a vintage cherry-red convertible sputtered its way onto Dottie's lot, trailing a plume of smoke. A young man, all slicked-back hair and nervous energy, hopped out. This was Billy, heir to the Carson fortune, and his grandfather's prized possession was coughing its last.
-Sarah chuckled. "That's oddly specific, Millie, but I get your point."
+Dottie, unfazed by the fancy car or the worry etched on Billy's face, popped the hood. She poked, prodded, and muttered to herself in a language only she and the car seemed to understand. Finally, with a triumphant grin, she held up a tiny, corroded part.
-Taking another sip, Sarah let Millie's words sink in. She needed a break, a moment to breathe. Maybe a walk by the river, watching the sunrise, would clear her head.
+"Fuel pump's had its day, sonny. But don't you worry," she winked, "Dr. Pepper's got just the cure."
-As if reading her mind, Millie placed a paper bag on the counter. "Here," she said, "a little something for your walk."
+Two days later, Billy sat on a stool by the open garage door, sipping Dottie's homemade root beer, its sweet, spicy flavor a revelation. The setting sun bathed the lot in a warm glow as Dottie tinkered with the final touches. When she finally turned the key, the engine roared to life, smoother and stronger than ever.
-Inside, Sarah found a freshly baked muffin and, to her surprise, another Dr. Pepper.
+Billy beamed, gratitude shining in his eyes. He knew he hadn't just found a mechanic; he'd found someone who understood the language of passion and dedication that whispered from the heart of a vintage engine. He'd found Dr. Pepper, and she was just what he, and his grandfather's car, needed.
-"Millie, you're an angel," Sarah said, her heart full.
+
Teardown
PASSED test_aws 0:00:01.693974
PASSED test_openai_shorthand 0:00:18.634061
PASSED test_openai_shorthand_streaming 0:00:09.031010
PASSED test_anthropic_shorthand 0:00:03.987248
PASSED test_anthropic_shorthand_streaming 0:00:02.828325
PASSED test_fallback_to_shorthand 0:00:01.221166
PASSED test_aws_streaming 0:00:01.693609
PASSED test_streaming 0:00:03.932973
PASSED test_streaming_uniterated 0:00:02.449438
PASSED test_streaming_sync 0:00:02.844836
PASSED test_streaming_uniterated_sync 0:00:02.818222
PASSED test_streaming_claude 0:00:01.109030
Setup
Call
Captured stdout call
msgs:
+Here's a haiku about Mt. Rainier:
-Later, sitting by the river, watching the sky turn from indigo to a soft peach, Sarah took a long drink, the familiar taste strangely refreshing, a symbol of comfort and hope. Millie was right; sometimes, all it took was a little break, a change of scenery, and a trusty Dr. Pepper to reset and find your stride again. And as the sun rose, painting the sky with vibrant hues, Sarah felt a renewed sense of energy, ready to tackle her work, and anything else life threw her way, one sip at a time.
-
-
Teardown
PASSED test_aws 0:00:01.726740
PASSED test_openai_shorthand 0:00:10.360040
PASSED test_openai_shorthand_streaming 0:00:09.784197
PASSED test_anthropic_shorthand 0:00:03.076218
PASSED test_anthropic_shorthand_streaming 0:00:03.144981
PASSED test_fallback_to_shorthand 0:00:00.829804
PASSED test_aws_streaming 0:00:01.520993
PASSED test_streaming 0:00:03.573813
PASSED test_streaming_uniterated 0:00:03.298885
PASSED test_streaming_sync 0:00:04.432857
PASSED test_streaming_uniterated_sync 0:00:02.071824
PASSED test_streaming_claude 0:00:01.047544
Setup
Call
Captured stdout call
msgs:
-Here's a haiku about Mt. Rainier's height:
-
-Rainier towers high
-Fourteen thousand feet of snow
-Guardian of sound
+Rainier stands proud, strong
+Piercing through clouds to bright sky
+Mountain king supreme
final:
-Here's a haiku about Mt. Rainier's height:
-
-Rainier towers high
-Fourteen thousand feet of snow
-Guardian of sound
-
Teardown
PASSED test_streaming_gemini 0:00:09.221093
Setup
Call
Captured stdout call
msgs:
-The old diner was quiet, the air thick with the smell of frying onions and yesterday's coffee. Behind the counter, Millie polished glasses with the practiced ease of someone who'd done it a thousand times before. She glanced at the clock – 11:47. Almost time.
+Here's a haiku about Mt. Rainier:
-Just then, the bell above the door chimed, announcing a customer. In strolled a man unlike any other, radiating an aura of effortless cool. He wore a crisp fedora tilted at a rakish angle, a pinstriped suit that whispered of forgotten speakeasies, and a smile that could charm the chrome off a Cadillac.
+Rainier stands proud, strong
+Piercing through clouds to bright sky
+Mountain king supreme
+
Teardown
PASSED test_streaming_gemini 0:00:09.248398
Setup
Call
Captured stdout call
msgs:
+The old diner hummed with the familiar tune of sizzling burgers and clinking silverware. The air, thick with the scent of frying onions and coffee, felt like a warm hug on a cold day. At a corner booth, sat a man, his fedora casting a shadow over his wrinkled face. He nursed a cup of coffee, his gaze lost somewhere beyond the checkered floor tiles.
-"Afternoon, Millie," he drawled, his voice smooth as melted caramel. "The usual, please."
+His name was William, and for as long as anyone could remember, he'd been a regular at Millie's Diner. He always ordered the same thing - black coffee and a slice of apple pie. But today, something was different. He looked…lost.
-Millie grinned, already filling a tall glass with ice. "Coming right up, Dr. Pepper."
+Millie, the owner with a heart as big as her legendary blueberry pancakes, noticed his somber mood. She poured him a fresh cup of coffee and placed a familiar red can next to it. "Something a little stronger than usual, hon?" she asked, her voice a warm melody.
-He always took the stool at the end, a silent guardian of the diner's corner booth. He never ordered anything but Dr Pepper, his namesake, and he always had a story to tell.
+William looked up, surprised. "Dr. Pepper? For me?"
-Today's tale was about a high-stakes poker game in a dusty saloon, where a mysterious woman in a red dress held the fate of a gold mine in her hand. As he spoke, his voice painted vivid pictures, transporting Millie and the few other patrons to another time, another world.
+Millie chuckled. "Saw you staring at the young couple at booth three sharing one. Figured you could use a trip down memory lane."
-He spoke of dusty trails and roaring trains, of love found and lost in the blink of an eye. He spoke of adventure, of intrigue, of a life lived on the edge, where every sip of Dr Pepper was a moment savored.
+He took a slow sip, the sweet, spicy taste instantly transporting him back decades. He was back in his college days, young and nervous, mustering the courage to talk to the beautiful redhead at the soda fountain. Her laugh echoed in his ears, the memory as vivid as the day it was made. She was gone now, but the feeling… that never faded.
-As quickly as it began, the story ended. Dr. Pepper drained the last drop from his glass, the ice clinking like a satisfied sigh. He tipped his hat to Millie, a twinkle in his eye.
+A small smile touched his lips. "Thank you, Millie," he murmured.
-"Until next time," he said, his voice barely a whisper.
+He spent the rest of the afternoon lost in memories, each sip of Dr. Pepper a sip of the past. The familiar taste wasn't just a drink, it was a time machine, a reminder of love, laughter, and life lived to the fullest.
-And with a wink, he was gone, leaving behind the faint scent of spice and the echo of a life well-lived. Millie watched him go, a small smile playing on her lips. In her little corner of the world, for a fleeting moment, the ordinary had become extraordinary, all thanks to the man called Dr. Pepper.
+And as the sun dipped low, casting long shadows across the diner, William knew he wouldn't trade those memories for anything. They were bittersweet, tinged with sadness, but they were his. And for that, he was grateful, just as he was grateful for Millie and the unexpected comfort of a simple Dr. Pepper.
final:
-The old diner was quiet, the air thick with the smell of frying onions and yesterday's coffee. Behind the counter, Millie polished glasses with the practiced ease of someone who'd done it a thousand times before. She glanced at the clock – 11:47. Almost time.
+The old diner hummed with the familiar tune of sizzling burgers and clinking silverware. The air, thick with the scent of frying onions and coffee, felt like a warm hug on a cold day. At a corner booth, sat a man, his fedora casting a shadow over his wrinkled face. He nursed a cup of coffee, his gaze lost somewhere beyond the checkered floor tiles.
-Just then, the bell above the door chimed, announcing a customer. In strolled a man unlike any other, radiating an aura of effortless cool. He wore a crisp fedora tilted at a rakish angle, a pinstriped suit that whispered of forgotten speakeasies, and a smile that could charm the chrome off a Cadillac.
+His name was William, and for as long as anyone could remember, he'd been a regular at Millie's Diner. He always ordered the same thing - black coffee and a slice of apple pie. But today, something was different. He looked…lost.
-"Afternoon, Millie," he drawled, his voice smooth as melted caramel. "The usual, please."
+Millie, the owner with a heart as big as her legendary blueberry pancakes, noticed his somber mood. She poured him a fresh cup of coffee and placed a familiar red can next to it. "Something a little stronger than usual, hon?" she asked, her voice a warm melody.
-Millie grinned, already filling a tall glass with ice. "Coming right up, Dr. Pepper."
+William looked up, surprised. "Dr. Pepper? For me?"
-He always took the stool at the end, a silent guardian of the diner's corner booth. He never ordered anything but Dr Pepper, his namesake, and he always had a story to tell.
+Millie chuckled. "Saw you staring at the young couple at booth three sharing one. Figured you could use a trip down memory lane."
-Today's tale was about a high-stakes poker game in a dusty saloon, where a mysterious woman in a red dress held the fate of a gold mine in her hand. As he spoke, his voice painted vivid pictures, transporting Millie and the few other patrons to another time, another world.
+He took a slow sip, the sweet, spicy taste instantly transporting him back decades. He was back in his college days, young and nervous, mustering the courage to talk to the beautiful redhead at the soda fountain. Her laugh echoed in his ears, the memory as vivid as the day it was made. She was gone now, but the feeling… that never faded.
-He spoke of dusty trails and roaring trains, of love found and lost in the blink of an eye. He spoke of adventure, of intrigue, of a life lived on the edge, where every sip of Dr Pepper was a moment savored.
+A small smile touched his lips. "Thank you, Millie," he murmured.
-As quickly as it began, the story ended. Dr. Pepper drained the last drop from his glass, the ice clinking like a satisfied sigh. He tipped his hat to Millie, a twinkle in his eye.
+He spent the rest of the afternoon lost in memories, each sip of Dr. Pepper a sip of the past. The familiar taste wasn't just a drink, it was a time machine, a reminder of love, laughter, and life lived to the fullest.
-"Until next time," he said, his voice barely a whisper.
+And as the sun dipped low, casting long shadows across the diner, William knew he wouldn't trade those memories for anything. They were bittersweet, tinged with sadness, but they were his. And for that, he was grateful, just as he was grateful for Millie and the unexpected comfort of a simple Dr. Pepper.
-And with a wink, he was gone, leaving behind the faint scent of spice and the echo of a life well-lived. Millie watched him go, a small smile playing on her lips. In her little corner of the world, for a fleeting moment, the ordinary had become extraordinary, all thanks to the man called Dr. Pepper.
-
-
Teardown
PASSED test_tracing_async_only 0:00:06.609080
Setup
Call
Captured stdout call
STATS TraceStats(failed=0, started=15, finalized=15, submitted=15, sent=15, done=15)
-
Teardown
PASSED test_tracing_sync 0:00:00.000458
PASSED test_tracing_thread_pool 0:00:01.476836
PASSED test_tracing_thread_pool_async 0:00:14.193971
PASSED test_tracing_async_gather 0:00:01.413140
PASSED test_tracing_async_gather_top_level 0:00:01.402663
PASSED test_dynamic 0:00:01.125572
Setup
Call
Captured stdout call
{'name': 'Harrison', 'hair_color': <Color.BLACK: 'BLACK'>, 'last_name': [], 'height': 1.83, 'hobbies': [<Hobby.SPORTS: 'SPORTS'>]}
-
Teardown
PASSED test_dynamic_class_output 0:00:00.913622
Setup
Call
Captured stdout call
[]
+
Teardown
PASSED test_tracing_async_only 0:00:04.643830
Setup
Call
Captured stdout call
STATS TraceStats(failed=0, started=15, finalized=15, submitted=15, sent=15, done=15)
+
Teardown
PASSED test_tracing_sync 0:00:00.000368
PASSED test_tracing_thread_pool 0:00:01.469023
PASSED test_tracing_thread_pool_async 0:00:14.592067
PASSED test_tracing_async_gather 0:00:01.479932
PASSED test_tracing_async_gather_top_level 0:00:01.306652
PASSED test_dynamic 0:00:01.252011
Setup
Call
Captured stdout call
{'name': 'Harrison', 'hair_color': <Color.BLACK: 'BLACK'>, 'last_name': [], 'height': 1.8288, 'hobbies': [<Hobby.SPORTS: 'SPORTS'>]}
+
Teardown
PASSED test_dynamic_class_output 0:00:00.963628
Setup
Call
Captured stdout call
[]
{"hair_color":"black"}
-
Teardown
PASSED test_dynamic_class_nested_output_no_stream 0:00:00.866759
Setup
Call
Captured stdout call
{"name":{"first_name":"Mark","last_name":"Gonzalez","middle_name":null},"address":null,"hair_color":"black","height":6.0}
-
Teardown
PASSED test_dynamic_class_nested_output_stream 0:00:00.618131
Setup
Call
Captured stdout call
streamed name=None hair_color=None
+
Teardown
PASSED test_dynamic_class_nested_output_no_stream 0:00:00.900188
Setup
Call
Captured stdout call
{"name":{"first_name":"Mark","last_name":"Gonzalez","middle_name":null},"address":null,"hair_color":"black","height":6.0}
+
Teardown
PASSED test_dynamic_class_nested_output_stream 0:00:00.727351
Setup
Call
Captured stdout call
streamed name=None hair_color=None
streamed {'name': None, 'hair_color': None}
streamed name=None hair_color=None
streamed {'name': None, 'hair_color': None}
@@ -188,7 +180,7 @@
streamed name={'first_name': 'Mark', 'last_name': 'Gonzalez'} hair_color='black'
streamed {'name': {'first_name': 'Mark', 'last_name': 'Gonzalez'}, 'hair_color': 'black'}
{"name":{"first_name":"Mark","last_name":"Gonzalez"},"hair_color":"black"}
-
Teardown
PASSED test_stream_dynamic_class_output 0:00:01.674849
Setup
Call
Captured stdout call
[]
+
Teardown
PASSED test_stream_dynamic_class_output 0:00:00.619440
Setup
Call
Captured stdout call
[]
streamed {'hair_color': '{'}
streamed {'hair_color': '{'}
streamed {'hair_color': '{\n "'}
@@ -205,19 +197,18 @@
final hair_color='black'
final {'hair_color': 'black'}
final {"hair_color":"black"}
-
Teardown
PASSED test_dynamic_inputs_list2 0:00:00.911101
PASSED test_dynamic_types_new_enum 0:00:01.516105
PASSED test_dynamic_types_existing_enum 0:00:00.746050
PASSED test_dynamic_literals 0:00:00.823691
PASSED test_dynamic_inputs_list 0:00:01.047489
PASSED test_dynamic_output_map 0:00:00.697238
Setup
Call
Captured stdout call
[]
+
Teardown
PASSED test_dynamic_inputs_list2 0:00:01.244929
PASSED test_dynamic_types_new_enum 0:00:00.899329
PASSED test_dynamic_types_existing_enum 0:00:00.670222
PASSED test_dynamic_literals 0:00:00.914224
PASSED test_dynamic_inputs_list 0:00:01.274591
PASSED test_dynamic_output_map 0:00:00.622982
Setup
Call
Captured stdout call
[]
final hair_color='black' attributes={'height': '6 feet', 'eye_color': 'blue', 'facial_hair': 'beard'}
final {'hair_color': 'black', 'attributes': {'height': '6 feet', 'eye_color': 'blue', 'facial_hair': 'beard'}}
final {"hair_color":"black","attributes":{"height":"6 feet","eye_color":"blue","facial_hair":"beard"}}
-
Teardown
PASSED test_dynamic_output_union 0:00:02.013329
Setup
Call
Captured stdout call
[]
-final hair_color='black' attributes={'eye_color': 'blue', 'facial_hair': 'beard'} height={'feet': 6.0, 'inches': None}
-final {'hair_color': 'black', 'attributes': {'eye_color': 'blue', 'facial_hair': 'beard'}, 'height': {'feet': 6.0, 'inches': None}}
-final {"hair_color":"black","attributes":{"eye_color":"blue","facial_hair":"beard"},"height":{"feet":6.0,"inches":null}}
-final hair_color='black' attributes={'eye_color': 'blue', 'facial_hair': 'beard', 'age': '30'} height={'meters': 1.8}
-final {'hair_color': 'black', 'attributes': {'eye_color': 'blue', 'facial_hair': 'beard', 'age': '30'}, 'height': {'meters': 1.8}}
-final {"hair_color":"black","attributes":{"eye_color":"blue","facial_hair":"beard","age":"30"},"height":{"meters":1.8}}
-
Teardown
PASSED test_nested_class_streaming 0:00:03.765765
Setup
Call
Captured stdout call
streamed {'prop1': None, 'prop2': None}
-streamed {'prop1': None, 'prop2': None}
+
Teardown
PASSED test_dynamic_output_union 0:00:03.483122
Setup
Call
Captured stdout call
[]
+final hair_color='black' attributes={'eye_color': 'blue', 'facial_hair': 'beard', 'age': '30'} height={'feet': 6.0, 'inches': None}
+final {'hair_color': 'black', 'attributes': {'eye_color': 'blue', 'facial_hair': 'beard', 'age': '30'}, 'height': {'feet': 6.0, 'inches': None}}
+final {"hair_color":"black","attributes":{"eye_color":"blue","facial_hair":"beard","age":"30"},"height":{"feet":6.0,"inches":null}}
+final hair_color='black' attributes={'eye_color': 'blue', 'facial_hair': 'beard'} height={'meters': 1.8}
+final {'hair_color': 'black', 'attributes': {'eye_color': 'blue', 'facial_hair': 'beard'}, 'height': {'meters': 1.8}}
+final {"hair_color":"black","attributes":{"eye_color":"blue","facial_hair":"beard"},"height":{"meters":1.8}}
+
Teardown
PASSED test_nested_class_streaming 0:00:04.964836
Setup
Call
Captured stdout call
streamed {'prop1': None, 'prop2': None}
streamed {'prop1': None, 'prop2': None}
streamed {'prop1': None, 'prop2': None}
streamed {'prop1': None, 'prop2': None}
@@ -246,210 +237,215 @@
streamed {'prop1': None, 'prop2': None}
streamed {'prop1': None, 'prop2': None}
streamed {'prop1': '', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': None}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': '', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': None, 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': '', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'fo', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': None}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': None, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-streamed {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': None}}}
-final {'prop1': 'hello', 'prop2': {'prop1': 'world', 'prop2': 'foobar', 'inner': {'prop2': 42, 'prop3': 3.14}}}
-
Teardown
PASSED test_dynamic_client_with_openai 0:00:02.211510
PASSED test_dynamic_client_with_vertex_json_str_creds 0:00:01.147061
PASSED test_dynamic_client_with_vertex_json_object_creds 0:00:00.963547
PASSED test_event_log_hook 0:00:01.163098
Setup
Call
Captured stdout call
Event log hook1:
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': None}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': None, 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': '', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': None, 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '2', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': None}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': None, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+streamed {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': None}}}
+final {'prop1': 'Hello', 'prop2': {'prop1': 'World', 'prop2': '20.5', 'inner': {'prop2': 43, 'prop3': 3.14}}}
+
Teardown
PASSED test_dynamic_client_with_openai 0:00:00.414254
PASSED test_dynamic_client_with_vertex_json_str_creds 0:00:01.102953
PASSED test_dynamic_client_with_vertex_json_object_creds 0:00:01.229239
PASSED test_event_log_hook 0:00:01.018153
Setup
Call
Captured stdout call
Event log hook1:
Event log event BamlLogEvent {
metadata: {
- event_id: "c13e21d5-f374-4c98-8013-b003aedb8fa3",
+ event_id: "0fad094a-7b15-4103-b2d0-4004c72cf447",
parent_id: None,
- root_event_id: "c13e21d5-f374-4c98-8013-b003aedb8fa3"
+ root_event_id: "0fad094a-7b15-4103-b2d0-4004c72cf447"
},
prompt: "[
{
@@ -463,13 +459,13 @@
]",
raw_output: "["a", "b", "c"]",
parsed_output: "["a", "b", "c"]",
- start_time: "2024-12-13T14:46:34.169Z"
+ start_time: "2024-12-13T15:06:45.817Z"
}
-
Teardown
PASSED test_aws_bedrock 0:00:03.126423
Setup
Call
Captured stdout call
unstreamed
+
Teardown
PASSED test_aws_bedrock 0:00:03.034956
Setup
Call
Captured stdout call
unstreamed
-The old geologist, Professor Thompson, had spent his entire career studying the ancient rocks of the Appalachian Mountains. He had seen it all - the fossilized trilobites, the quartz crystals, the veins of gold. But nothing could have prepared him for what he was about to discover.
+In the heart of the ancient forest, there was a peculiar rock that stood out from the rest. It was a deep, rich brown color, almost like the earth itself, and it seemed to glow with an inner light. The locals called it the "Heartrock," and whispered stories about its mysterious powers.
-As he made his way through the dense forest, his eyes scanned the ground, searching for the perfect specimen. Suddenly, his gaze landed on a peculiar rock, unlike any he had ever seen before.
+One stormy night, a bolt of lightning struck the Heartrock, sending a shiver through the forest. The air was electric with anticipation as the villagers gathered around the rock, watching
streamed '\n\n'
streamed '\n\nIn'
streamed '\n\nIn the'
@@ -487,100 +483,100 @@
streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any'
streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other'
streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other.'
-streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. Its'
-streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. Its surface'
-streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. Its surface was'
-streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. Its surface was worn'
-streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. Its surface was worn smooth'
-streamed 'n the heart of the ancient forest, there was a rock unlike any other. Its surface was worn smooth by'
-streamed 'e heart of the ancient forest, there was a rock unlike any other. Its surface was worn smooth by the'
-streamed 'of the ancient forest, there was a rock unlike any other. Its surface was worn smooth by the passing'
-streamed 'the ancient forest, there was a rock unlike any other. Its surface was worn smooth by the passing of'
-streamed 'ncient forest, there was a rock unlike any other. Its surface was worn smooth by the passing of time'
-streamed 'cient forest, there was a rock unlike any other. Its surface was worn smooth by the passing of time,'
-streamed 't forest, there was a rock unlike any other. Its surface was worn smooth by the passing of time, and'
-streamed 'rest, there was a rock unlike any other. Its surface was worn smooth by the passing of time, and its'
-streamed 'there was a rock unlike any other. Its surface was worn smooth by the passing of time, and its color'
-streamed 'e was a rock unlike any other. Its surface was worn smooth by the passing of time, and its color was'
-streamed 'was a rock unlike any other. Its surface was worn smooth by the passing of time, and its color was a'
-streamed ' rock unlike any other. Its surface was worn smooth by the passing of time, and its color was a deep'
-streamed 'rock unlike any other. Its surface was worn smooth by the passing of time, and its color was a deep,'
-streamed 'unlike any other. Its surface was worn smooth by the passing of time, and its color was a deep, rich'
-streamed ' any other. Its surface was worn smooth by the passing of time, and its color was a deep, rich brown'
-streamed 'any other. Its surface was worn smooth by the passing of time, and its color was a deep, rich brown.'
-streamed 'other. Its surface was worn smooth by the passing of time, and its color was a deep, rich brown. But'
-streamed '. Its surface was worn smooth by the passing of time, and its color was a deep, rich brown. But what'
-streamed ' surface was worn smooth by the passing of time, and its color was a deep, rich brown. But what made'
-streamed 'ace was worn smooth by the passing of time, and its color was a deep, rich brown. But what made this'
-streamed 'as worn smooth by the passing of time, and its color was a deep, rich brown. But what made this rock'
-streamed 'n smooth by the passing of time, and its color was a deep, rich brown. But what made this rock truly'
-streamed ' by the passing of time, and its color was a deep, rich brown. But what made this rock truly special'
-streamed 'the passing of time, and its color was a deep, rich brown. But what made this rock truly special was'
-streamed 'passing of time, and its color was a deep, rich brown. But what made this rock truly special was the'
-streamed 'of time, and its color was a deep, rich brown. But what made this rock truly special was the strange'
-streamed 'f time, and its color was a deep, rich brown. But what made this rock truly special was the strange,'
-streamed 'and its color was a deep, rich brown. But what made this rock truly special was the strange, glowing'
-streamed 'ts color was a deep, rich brown. But what made this rock truly special was the strange, glowing vein'
-streamed 'lor was a deep, rich brown. But what made this rock truly special was the strange, glowing vein that'
-streamed 'was a deep, rich brown. But what made this rock truly special was the strange, glowing vein that ran'
-streamed 'ep, rich brown. But what made this rock truly special was the strange, glowing vein that ran through'
-streamed 'rich brown. But what made this rock truly special was the strange, glowing vein that ran through its'
-streamed 'own. But what made this rock truly special was the strange, glowing vein that ran through its center'
-streamed '. But what made this rock truly special was the strange, glowing vein that ran through its center.\n\n'
-streamed 'ut what made this rock truly special was the strange, glowing vein that ran through its center.\n\nThe'
-streamed 'at made this rock truly special was the strange, glowing vein that ran through its center.\n\nThe vein'
-streamed 'ade this rock truly special was the strange, glowing vein that ran through its center.\n\nThe vein was'
-streamed 'e this rock truly special was the strange, glowing vein that ran through its center.\n\nThe vein was a'
-streamed 's rock truly special was the strange, glowing vein that ran through its center.\n\nThe vein was a deep'
-streamed ' rock truly special was the strange, glowing vein that ran through its center.\n\nThe vein was a deep,'
-streamed 'ly special was the strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric'
-streamed 'ecial was the strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue'
-streamed 'cial was the strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue,'
-streamed ' was the strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and'
-streamed 's the strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and it'
-streamed 'e strange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pul'
-streamed 'trange, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed'
-streamed 'e, glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with'
-streamed ' glowing vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with a'
-streamed 'g vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle'
-streamed ' vein that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle,'
-streamed 'that ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhyth'
-streamed 't ran through its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic'
-streamed 'hrough its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy'
-streamed 'rough its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy.'
-streamed 'gh its center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It'
-streamed 'ts center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was'
-streamed 'center.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as'
-streamed 'ter.\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if'
-streamed '\n\nThe vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the'
-streamed ' vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock'
-streamed 'n was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was'
-streamed 'a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive'
-streamed ' deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive,'
-streamed 'p, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and'
-streamed 'lectric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the'
-streamed 'ic blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein'
-streamed 'lue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was'
-streamed ' and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its'
-streamed 'it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its life'
-streamed 'lsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood'
-streamed 'sed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood.'
-streamed 'with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood. The'
-streamed 'gentle, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals'
-streamed 'le, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had'
-streamed 'ythmic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named'
-streamed 'ic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named the'
-streamed 'ic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named the'
-streamed 'ic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named the'
-streamed 'ic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named the'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was a'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was a massive'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was a massive b'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was a massive boulder'
+streamed '\n\nIn the heart of the ancient forest, there was a rock unlike any other. It was a massive boulder,'
+streamed 'he heart of the ancient forest, there was a rock unlike any other. It was a massive boulder, weather'
+streamed ' heart of the ancient forest, there was a rock unlike any other. It was a massive boulder, weathered'
+streamed 'art of the ancient forest, there was a rock unlike any other. It was a massive boulder, weathered by'
+streamed 'f the ancient forest, there was a rock unlike any other. It was a massive boulder, weathered by time'
+streamed 'e ancient forest, there was a rock unlike any other. It was a massive boulder, weathered by time and'
+streamed 'cient forest, there was a rock unlike any other. It was a massive boulder, weathered by time and the'
+streamed 'est, there was a rock unlike any other. It was a massive boulder, weathered by time and the elements'
+streamed 'st, there was a rock unlike any other. It was a massive boulder, weathered by time and the elements,'
+streamed 'here was a rock unlike any other. It was a massive boulder, weathered by time and the elements, with'
+streamed 're was a rock unlike any other. It was a massive boulder, weathered by time and the elements, with a'
+streamed ' rock unlike any other. It was a massive boulder, weathered by time and the elements, with a strange'
+streamed ' unlike any other. It was a massive boulder, weathered by time and the elements, with a strange glow'
+streamed 'ke any other. It was a massive boulder, weathered by time and the elements, with a strange glow eman'
+streamed 'y other. It was a massive boulder, weathered by time and the elements, with a strange glow emanating'
+streamed 'er. It was a massive boulder, weathered by time and the elements, with a strange glow emanating from'
+streamed 'was a massive boulder, weathered by time and the elements, with a strange glow emanating from within'
+streamed 'as a massive boulder, weathered by time and the elements, with a strange glow emanating from within.'
+streamed ' massive boulder, weathered by time and the elements, with a strange glow emanating from within. The'
+streamed 'e boulder, weathered by time and the elements, with a strange glow emanating from within. The locals'
+streamed 'er, weathered by time and the elements, with a strange glow emanating from within. The locals called'
+streamed ' weathered by time and the elements, with a strange glow emanating from within. The locals called it'
+streamed 'thered by time and the elements, with a strange glow emanating from within. The locals called it the'
+streamed 'ered by time and the elements, with a strange glow emanating from within. The locals called it the "'
+streamed 'by time and the elements, with a strange glow emanating from within. The locals called it the "Heart'
+streamed 'me and the elements, with a strange glow emanating from within. The locals called it the "Heartstone'
+streamed ' and the elements, with a strange glow emanating from within. The locals called it the "Heartstone,"'
+streamed ' the elements, with a strange glow emanating from within. The locals called it the "Heartstone," and'
+streamed 'nts, with a strange glow emanating from within. The locals called it the "Heartstone," and whispered'
+streamed 'h a strange glow emanating from within. The locals called it the "Heartstone," and whispered stories'
+streamed ' strange glow emanating from within. The locals called it the "Heartstone," and whispered stories of'
+streamed 'ange glow emanating from within. The locals called it the "Heartstone," and whispered stories of its'
+streamed ' emanating from within. The locals called it the "Heartstone," and whispered stories of its mystical'
+streamed 'ing from within. The locals called it the "Heartstone," and whispered stories of its mystical powers'
+streamed ' from within. The locals called it the "Heartstone," and whispered stories of its mystical powers.\n\n'
+streamed 'om within. The locals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne'
+streamed 'hin. The locals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne storm'
+streamed 'in. The locals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy'
+streamed 'e locals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night'
+streamed ' locals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night,'
+streamed 'ocals called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night, a'
+streamed 'called it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night, a young'
+streamed 'd it the "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night, a young girl'
+streamed 'he "Heartstone," and whispered stories of its mystical powers.\n\nOne stormy night, a young girl named'
+streamed 'eartstone," and whispered stories of its mystical powers.\n\nOne stormy night, a young girl named Lily'
+streamed '," and whispered stories of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered'
+streamed 'd whispered stories of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered into'
+streamed 'ispered stories of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered into the'
+streamed ' stories of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered into the forest'
+streamed 'stories of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered into the forest,'
+streamed 'of its mystical powers.\n\nOne stormy night, a young girl named Lily wandered into the forest, seeking'
+streamed 'ystical powers.\n\nOne stormy night, a young girl named Lily wandered into the forest, seeking shelter'
+streamed 'al powers.\n\nOne stormy night, a young girl named Lily wandered into the forest, seeking shelter from'
+streamed 'owers.\n\nOne stormy night, a young girl named Lily wandered into the forest, seeking shelter from the'
+streamed 'One stormy night, a young girl named Lily wandered into the forest, seeking shelter from the torrent'
+streamed ' stormy night, a young girl named Lily wandered into the forest, seeking shelter from the torrential'
+streamed 'my night, a young girl named Lily wandered into the forest, seeking shelter from the torrential rain'
+streamed 'y night, a young girl named Lily wandered into the forest, seeking shelter from the torrential rain.'
+streamed 'ight, a young girl named Lily wandered into the forest, seeking shelter from the torrential rain. As'
+streamed ', a young girl named Lily wandered into the forest, seeking shelter from the torrential rain. As she'
+streamed ' girl named Lily wandered into the forest, seeking shelter from the torrential rain. As she stumbled'
+streamed 'med Lily wandered into the forest, seeking shelter from the torrential rain. As she stumbled through'
+streamed 'Lily wandered into the forest, seeking shelter from the torrential rain. As she stumbled through the'
+streamed 'ered into the forest, seeking shelter from the torrential rain. As she stumbled through the darkness'
+streamed 'red into the forest, seeking shelter from the torrential rain. As she stumbled through the darkness,'
+streamed 'into the forest, seeking shelter from the torrential rain. As she stumbled through the darkness, the'
+streamed 'the forest, seeking shelter from the torrential rain. As she stumbled through the darkness, the wind'
+streamed 'forest, seeking shelter from the torrential rain. As she stumbled through the darkness, the wind how'
+streamed 'est, seeking shelter from the torrential rain. As she stumbled through the darkness, the wind howled'
+streamed ' seeking shelter from the torrential rain. As she stumbled through the darkness, the wind howled and'
+streamed 'king shelter from the torrential rain. As she stumbled through the darkness, the wind howled and the'
+streamed 'lter from the torrential rain. As she stumbled through the darkness, the wind howled and the thunder'
+streamed 'r from the torrential rain. As she stumbled through the darkness, the wind howled and the thunder bo'
+streamed 'om the torrential rain. As she stumbled through the darkness, the wind howled and the thunder boomed'
+streamed 'm the torrential rain. As she stumbled through the darkness, the wind howled and the thunder boomed,'
+streamed 'orrential rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making'
+streamed 'ntial rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making her'
+streamed 'ntial rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making her'
+streamed 'ntial rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making her'
+streamed 'ntial rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making her'
streamed final
-In the heart of the ancient forest, there was a rock unlike any other. Its surface was worn smooth by the passing of time, and its color was a deep, rich brown. But what made this rock truly special was the strange, glowing vein that ran through its center.
+In the heart of the ancient forest, there was a rock unlike any other. It was a massive boulder, weathered by time and the elements, with a strange glow emanating from within. The locals called it the "Heartstone," and whispered stories of its mystical powers.
-The vein was a deep, electric blue, and it pulsed with a gentle, rhythmic energy. It was as if the rock was alive, and the vein was its lifeblood. The locals had named the
-
Teardown
PASSED test_aws_bedrock_invalid_region 0:00:00.005900
PASSED test_serialization_exception 0:00:00.522414
Setup
Call
Captured stdout call
Exception message from test: <ExceptionInfo BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing require...required field: nonce2, raw_output=Hello there! How can I assist you today?, prompt=[chat] system: Say "hello there".
+One stormy night, a young girl named Lily wandered into the forest, seeking shelter from the torrential rain. As she stumbled through the darkness, the wind howled and the thunder boomed, making her
+
Teardown
PASSED test_aws_bedrock_invalid_region 0:00:00.049519
PASSED test_serialization_exception 0:00:00.505185
Setup
Call
Captured stdout call
Exception message from test: <ExceptionInfo BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing require...required field: nonce2, raw_output=Hello there! How can I assist you today?, prompt=[chat] system: Say "hello there".
) tblen=2>
-
Teardown
PASSED test_stream_serialization_exception 0:00:00.634719
Setup
Call
Captured stdout call
streamed nonce=None nonce2=None
+
Teardown
PASSED test_stream_serialization_exception 0:00:00.395514
Setup
Call
Captured stdout call
streamed nonce=None nonce2=None
streamed nonce=None nonce2=None
streamed nonce=None nonce2=None
streamed nonce=None nonce2=None
@@ -595,7 +591,7 @@
streamed nonce=None nonce2=None
Exception message: <ExceptionInfo BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing require...g required field: nonce2, raw_output=Hello there! How can I help you today?, prompt=[chat] system: Say "hello there".
) tblen=3>
-
Teardown
PASSED test_stream2_serialization_exception 0:00:00.383816
Setup
Call
Captured stdout call
streamed nonce=None nonce2=None nonce3=None
+
Teardown
PASSED test_stream2_serialization_exception 0:00:00.400340
Setup
Call
Captured stdout call
streamed nonce=None nonce2=None nonce3=None
streamed nonce=None nonce2=None nonce3=None
streamed nonce=None nonce2=None nonce3=None
streamed nonce=None nonce2=None nonce3=None
@@ -608,133 +604,21 @@
streamed nonce=None nonce2=None nonce3=None
streamed nonce=None nonce2=None nonce3=None
streamed nonce=None nonce2=None nonce3=None
-Exception message: <ExceptionInfo BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing require...required field: nonce3, raw_output=Hello there! How can I assist you today?, prompt=[chat] system: Say "hello there".
+Exception message: <ExceptionInfo BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing require...g required field: nonce3, raw_output=Hello there! How can I help you today?, prompt=[chat] system: Say "hello there".
) tblen=3>
-
Teardown
PASSED test_descriptions 0:00:02.583328
FAILED test_caching 0:00:08.892028
AssertionError: 4.48455023765564 < 4.406625032424927. Expected second call to be faster than first by a large margin.
-assert 4.48455023765564 < 4.406625032424927
Setup
Call
@pytest.mark.asyncio
- async def test_caching():
- story_idea = f"""
- In a futuristic world where dreams are a marketable asset and collective experience, an introverted and socially inept teenager named Alex realizes they have a unique and potent skill to not only observe but also alter the dreams of others. Initially excited by this newfound talent, Alex starts discreetly modifying the dreams of peers and relatives, aiding them in conquering fears, boosting self-esteem, or embarking on fantastical journeys. As Alex's abilities expand, so does their sway. They begin marketing exclusive dream experiences on the underground market, designing complex and captivating dreamscapes for affluent clients. However, the boundary between dream and reality starts to fade for those subjected to Alex's creations. Some clients find it difficult to distinguish between their genuine memories and the fabricated ones inserted by Alex's dream manipulation.
-
- Challenges emerge when a secretive government organization becomes aware of Alex's distinct talents. They propose Alex utilize their gift for "the greater good," suggesting uses in therapy, criminal reform, and even national defense. Concurrently, a covert resistance group contacts Alex, cautioning them about the risks of dream manipulation and the potential for widespread control and exploitation. Trapped between these conflicting forces, Alex must navigate a tangled web of moral dilemmas. They wrestle with issues of free will, the essence of consciousness, and the duty that comes with having influence over people's minds. As the repercussions of their actions ripple outward, impacting the lives of loved ones and strangers alike, Alex is compelled to face the true nature of their power and decide how—or if—it should be wielded.
-
- The narrative investigates themes of identity, the subconscious, the ethics of technology, and the power of creativity. It explores the possible outcomes of a world where our most intimate thoughts and experiences are no longer truly our own, and scrutinizes the fine line between aiding others and manipulating them for personal benefit or a perceived greater good. The story further delves into the societal ramifications of such abilities, questioning the moral limits of altering consciousness and the potential for misuse in a world where dreams can be commercialized. It challenges the reader to contemplate the impact of technology on personal freedom and the ethical duties of those who wield such power.
-
- As Alex's journey progresses, they meet various individuals whose lives have been influenced by their dream manipulations, each offering a distinct viewpoint on the ethical issues at hand. From a peer who gains newfound confidence to a wealthy client who becomes dependent on the dreamscapes, the ripple effects of Alex's actions are significant and extensive. The government agency's interest in Alex's abilities raises questions about the potential for state control and surveillance, while the resistance movement underscores the dangers of unchecked power and the necessity of protecting individual freedoms.
-
- Ultimately, Alex's story is one of self-discovery and moral reflection, as they must choose whether to use their abilities for personal gain, align with the government's vision of a controlled utopia, or join the resistance in their struggle for freedom and autonomy. The narrative encourages readers to reflect on the nature of reality, the boundaries of human experience, and the ethical implications of a world where dreams are no longer private sanctuaries but shared and manipulated commodities. It also examines the psychological impact on Alex, who must cope with the burden of knowing the intimate fears and desires of others, and the isolation that comes from being unable to share their own dreams without altering them.
-
- The story further investigates the technological progress that has made dream manipulation feasible, questioning the role of innovation in society and the potential for both advancement and peril. It considers the societal divide between those who can afford to purchase enhanced dream experiences and those who cannot, highlighting issues of inequality and access. As Alex becomes more ensnared in the web of their own making, they must confront the possibility that their actions could lead to unintended consequences, not just for themselves but for the fabric of society as a whole.
-
- In the end, Alex's journey is a cautionary tale about the power of dreams and the responsibilities that come with wielding such influence. It serves as a reminder of the importance of ethical considerations in the face of technological advancement and the need to balance innovation with humanity. The story leaves readers pondering the true cost of a world where dreams are no longer sacred, and the potential for both wonder and danger in the uncharted territories of the mind. But it's also a story about the power of imagination and the potential for change, even in a world where our deepest thoughts are no longer our own. And it's a story about the power of choice, and the importance of fighting for the freedom to dream.
-
- In conclusion, this story is a reflection on the power of dreams and the responsibilities that come with wielding such influence. It serves as a reminder of the importance of ethical considerations in the face of technological advancement and the need to balance innovation with humanity. The story leaves readers pondering the true cost of a world where dreams are no longer sacred, and the potential for both wonder and danger in the uncharted territories of the mind. But it's also a story about the power of imagination and the potential for change, even in a world where our deepest thoughts are no longer our own. And it's a story about the power of choice, and the importance of fighting for the freedom to dream.
- """
- rand = uuid.uuid4().hex
- story_idea = rand + story_idea
+
Teardown
PASSED test_descriptions 0:00:01.975074
PASSED test_caching 0:00:07.776454
Setup
Call
Captured stdout call
Duration no caching: 4.188543081283569
+Duration with caching: 3.5870521068573
+
Teardown
PASSED test_arg_exceptions 0:00:00.755149
Setup
Call
Captured stderr call
[2024-12-13T15:07:00Z ERROR baml_runtime::tracing] Error: input: Expected type String, got `Number(111)`
- start = time.time()
- _ = await b.TestCaching(story_idea, "1. try to be funny")
- duration = time.time() - start
+
Teardown
PASSED test_map_as_param 0:00:00.001055
Setup
Call
Captured stderr call
[2024-12-13T15:07:01Z ERROR baml_runtime::tracing] Error: myMap: a: Expected map, got `String("b")`
- start = time.time()
- _ = await b.TestCaching(story_idea, "1. try to be funny")
- duration2 = time.time() - start
-
- print("Duration no caching: ", duration)
- print("Duration with caching: ", duration2)
-
-> assert (
- duration2 < duration
- ), f"{duration2} < {duration}. Expected second call to be faster than first by a large margin."
-E AssertionError: 4.48455023765564 < 4.406625032424927. Expected second call to be faster than first by a large margin.
-E assert 4.48455023765564 < 4.406625032424927
-
-tests/test_functions.py:1271: AssertionError
Captured stdout call
Duration no caching: 4.406625032424927
-Duration with caching: 4.48455023765564
-
Teardown
PASSED test_arg_exceptions 0:00:00.693737
Setup
Call
Captured stderr call
[2024-12-13T14:46:51Z ERROR baml_runtime::tracing] Error: input: Expected type String, got `Number(111)`
-
-
Teardown
PASSED test_map_as_param 0:00:00.001014
Setup
Call
Captured stderr call
[2024-12-13T14:46:51Z ERROR baml_runtime::tracing] Error: myMap: a: Expected map, got `String("b")`
-
-
Teardown
PASSED test_baml_validation_error_format 0:00:00.659617
Setup
Call
Captured stdout call
Error: BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing required fields: missing=2, unparsed=0
+
Teardown
PASSED test_baml_validation_error_format 0:00:00.488643
Setup
Call
Captured stdout call
Error: BamlValidationError(message=Failed to parse LLM response: Failed to coerce value: <root>: Failed while parsing required fields: missing=2, unparsed=0
- <root>: Missing required field: nonce
- <root>: Missing required field: nonce2, raw_output=Hello there! How can I assist you today?, prompt=[chat] system: Say "hello there".
)
-
Teardown
PASSED test_no_stream_big_integer 0:00:00.475766
PASSED test_no_stream_object_with_numbers 0:00:00.544767
PASSED test_no_stream_compound_object 0:00:03.736282
PASSED test_no_stream_compound_object_with_yapping 0:00:06.240334
PASSED test_differing_unions 0:00:01.446055
PASSED test_return_failing_assert 0:00:00.302921
PASSED test_parameter_failing_assert 0:00:00.001126
Setup
Call
Captured stderr call
[2024-12-13T14:47:05Z ERROR baml_runtime::tracing] Error: inp: Failed assert: small_int
+
Teardown
PASSED test_no_stream_big_integer 0:00:00.529150
PASSED test_no_stream_object_with_numbers 0:00:00.631862
PASSED test_no_stream_compound_object 0:00:05.253739
PASSED test_no_stream_compound_object_with_yapping 0:00:03.953582
PASSED test_differing_unions 0:00:00.915790
PASSED test_return_failing_assert 0:00:00.358101
PASSED test_parameter_failing_assert 0:00:00.001212
Setup
Call
Captured stderr call
[2024-12-13T15:07:13Z ERROR baml_runtime::tracing] Error: inp: Failed assert: small_int
-
Teardown
PASSED test_failing_assert_can_stream 0:00:03.236497
Setup
Call
Captured stdout call
None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
-None
+
Teardown
PASSED test_failing_assert_can_stream 0:00:02.406054
Setup
Call
Captured stdout call
None
None
None
None
@@ -1338,9 +1222,9 @@
None
None
None
-
Teardown
PASSED test_simple_recursive_type 0:00:03.273222
PASSED test_mutually_recursive_type 0:00:02.808815
PASSED test_block_constraints 0:00:00.480892
PASSED test_nested_block_constraints 0:00:00.523365
Setup
Call
Captured stdout call
nbc=Checked[BlockConstraint, Literal['cross_field']](value=BlockConstraint(foo=1, bar='hello'), checks={'cross_field': Check(name='cross_field', expression='this.bar|length > this.foo', status='succeeded')})
-
Teardown
PASSED test_block_constraint_arguments 0:00:00.001791
Setup
Call
Captured stderr call
[2024-12-13T14:47:15Z ERROR baml_runtime::tracing] Error: inp: Failed assert: hi
+
Teardown
PASSED test_simple_recursive_type 0:00:03.369275
PASSED test_mutually_recursive_type 0:00:01.546244
PASSED test_block_constraints 0:00:00.511981
PASSED test_nested_block_constraints 0:00:00.576220
Setup
Call
Captured stdout call
nbc=Checked[BlockConstraint, Literal['cross_field']](value=BlockConstraint(foo=1, bar='hello'), checks={'cross_field': Check(name='cross_field', expression='this.bar|length > this.foo', status='succeeded')})
+
Teardown
PASSED test_block_constraint_arguments 0:00:00.001984
Setup
Call
Captured stderr call
[2024-12-13T15:07:21Z ERROR baml_runtime::tracing] Error: inp: Failed assert: hi
-[2024-12-13T14:47:15Z ERROR baml_runtime::tracing] Error: inp: Failed assert: hi
+[2024-12-13T15:07:21Z ERROR baml_runtime::tracing] Error: inp: Failed assert: hi
-
Teardown
tests/test_pydantic.py 3 0:00:00.001514
PASSED test_model_validate_success 0:00:00.000787
PASSED test_model_validate_failure 0:00:00.000502
PASSED test_model_dump 0:00:00.000225
tests/test_python.py 2 0:00:00.005336
PASSED test_inspect 0:00:00.004967
Assert that baml_py is compatible with the inspect module.
This is a regression test for a bug where inspect.stack() would implode if the pyo3 code called PyModule::from_code without specifying the file_name arg (i.e. without specifying the source file metadata for the inline Python snippet).
PASSED test_pickle 0:00:00.000369