_aget_examples() — langchain Function Reference
Architecture documentation for the _aget_examples() function in few_shot_with_templates.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 93fc120e_b1a5_fcae_169a_ef5b5f0fa7ea["_aget_examples()"] 713e8d01_f24d_0ae6_d363_33f3f321e867["FewShotPromptWithTemplates"] 93fc120e_b1a5_fcae_169a_ef5b5f0fa7ea -->|defined in| 713e8d01_f24d_0ae6_d363_33f3f321e867 1be82c67_7cbe_640e_5a7c_6cbdd88cb446["aformat()"] 1be82c67_7cbe_640e_5a7c_6cbdd88cb446 -->|calls| 93fc120e_b1a5_fcae_169a_ef5b5f0fa7ea style 93fc120e_b1a5_fcae_169a_ef5b5f0fa7ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/prompts/few_shot_with_templates.py lines 115–120
async def _aget_examples(self, **kwargs: Any) -> list[dict]:
if self.examples is not None:
return self.examples
if self.example_selector is not None:
return await self.example_selector.aselect_examples(kwargs)
raise ValueError
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _aget_examples() do?
_aget_examples() is a function in the langchain codebase, defined in libs/core/langchain_core/prompts/few_shot_with_templates.py.
Where is _aget_examples() defined?
_aget_examples() is defined in libs/core/langchain_core/prompts/few_shot_with_templates.py at line 115.
What calls _aget_examples()?
_aget_examples() is called by 1 function(s): aformat.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free