_format_annotation_from_lc() — langchain Function Reference
Architecture documentation for the _format_annotation_from_lc() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 00006c95_8bb4_f0a5_7955_81d9e07c009d["_format_annotation_from_lc()"] 2b046911_ea21_8e2e_ba0d_9d03da8d7bda["base.py"] 00006c95_8bb4_f0a5_7955_81d9e07c009d -->|defined in| 2b046911_ea21_8e2e_ba0d_9d03da8d7bda b988bc7d_ceff_06f1_193c_a22abc7a149f["_construct_responses_api_input()"] b988bc7d_ceff_06f1_193c_a22abc7a149f -->|calls| 00006c95_8bb4_f0a5_7955_81d9e07c009d style 00006c95_8bb4_f0a5_7955_81d9e07c009d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/langchain_openai/chat_models/base.py lines 3971–3976
def _format_annotation_from_lc(annotation: dict[str, Any]) -> dict[str, Any]:
if annotation.get("type") == "file_citation" and "file_index" in annotation:
new_annotation = annotation.copy()
new_annotation["index"] = new_annotation.pop("file_index")
return new_annotation
return annotation
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _format_annotation_from_lc() do?
_format_annotation_from_lc() is a function in the langchain codebase, defined in libs/partners/openai/langchain_openai/chat_models/base.py.
Where is _format_annotation_from_lc() defined?
_format_annotation_from_lc() is defined in libs/partners/openai/langchain_openai/chat_models/base.py at line 3971.
What calls _format_annotation_from_lc()?
_format_annotation_from_lc() is called by 1 function(s): _construct_responses_api_input.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free