MCPcopy Index your code
hub / github.com/google/adk-python / build_example_si

Function build_example_si

src/google/adk/examples/example_util.py:115–125  ·  view source on GitHub ↗
(
    examples: Union[list[Example], BaseExampleProvider],
    query: str,
    model: Optional[str],
)

Source from the content-addressed store, hash-verified

113
114
115def build_example_si(
116 examples: Union[list[Example], BaseExampleProvider],
117 query: str,
118 model: Optional[str],
119) -> str:
120 if isinstance(examples, list):
121 return convert_examples_to_text(examples, model)
122 if isinstance(examples, BaseExampleProvider):
123 return convert_examples_to_text(examples.get_examples(query), model)
124
125 raise ValueError("Invalid example configuration")

Callers

nothing calls this directly

Calls 2

convert_examples_to_textFunction · 0.85
get_examplesMethod · 0.45

Tested by

no test coverage detected