409 matches across 25 files for TODO
snippet_mode: grep · sorted by relevance
.github/scripts/check_diff.py PYTHON 2 matches view file →
333 dirs_to_run["extended-test"].add(dir_)
334 elif file.startswith("libs/standard-tests"):
335 # TODO: update to include all packages that rely on standard-tests (all partner packages)
336 # Note: won't run on external repo partners
337 dirs_to_run["lint"].add("libs/standard-tests")
· · ·
379
380 # we now have dirs_by_job
381 # todo: clean this up
382 map_job_to_configs = {
383 job: _get_configs_for_multi_dirs(job, dirs_to_run, dependents)
.github/tools/git-restore-mtime #! 1 matches view file →
32"""
33
34# TODO:
35# - Add -z on git whatchanged/ls-files, so we don't deal with filename decoding
36# - When Python is bumped to 3.7, use text instead of universal_newlines on subprocess
.github/workflows/_release.yml YAML 1 matches view file →
504 # We implement this conditional as Github Actions does not have good support
505 # for conditionally needing steps. https://github.com/actions/runner/issues/491
506 # TODO: this seems to be resolved upstream, so we can probably remove this workaround
507 - name: Check if libs/core
508 run: |
libs/core/langchain_core/language_models/chat_models.py PYTHON 1 matches view file →
395 profile data.
396 """
397 # TODO: consider adding a `_model_identifier` property on BaseChatModel
398 # to standardize how partners identify their model, which could allow a
399 # default implementation here that calls a shared
libs/core/langchain_core/language_models/llms.py PYTHON 2 matches view file →
827 prompts,
828 stop=stop,
829 # TODO: support multiple run managers
830 run_manager=run_managers[0] if run_managers else None,
831 **kwargs,
· · ·
1538 **kwargs: Any,
1539 ) -> LLMResult:
1540 # TODO: add caching here.
1541 generations = []
1542 new_arg_supported = inspect.signature(self._call).parameters.get("run_manager")
libs/core/langchain_core/language_models/model_profile.py PYTHON 4 matches view file →
57 image_inputs: bool
58 """Whether image inputs are supported."""
59 # TODO: add more detail about formats?
60
61 image_url_inputs: bool
· · ·
66 """Whether [PDF inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal)
67 are supported."""
68 # TODO: add more detail about formats? e.g. bytes or base64
69
70 audio_inputs: bool
· · ·
71 """Whether [audio inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal)
72 are supported."""
73 # TODO: add more detail about formats? e.g. bytes or base64
74
75 video_inputs: bool
· · ·
76 """Whether [video inputs](https://docs.langchain.com/oss/python/langchain/models#multimodal)
77 are supported."""
78 # TODO: add more detail about formats? e.g. bytes or base64
79
80 image_tool_message: bool
libs/core/langchain_core/messages/ai.py PYTHON 1 matches view file →
299 return blocks
300
301 # TODO: remove this logic if possible, reducing breaking nature of changes
302 @model_validator(mode="before")
303 @classmethod
libs/core/langchain_core/messages/base.py PYTHON 1 matches view file →
337 """ # noqa: E501
338 title = get_msg_title_repr(self.type.title() + " Message", bold=html)
339 # TODO: handle non-string content.
340 if self.name is not None:
341 title += f"\nName: {self.name}"
libs/core/langchain_core/messages/block_translators/bedrock.py PYTHON 1 matches view file →
88 The derived content blocks.
89 """
90 # TODO: add model_name to all Bedrock chunks and update core merging logic
91 # to not append during aggregation. Then raise NotImplementedError here if
92 # not an Anthropic model to fall back to best-effort parsing.
libs/core/langchain_core/messages/block_translators/langchain_v0.py PYTHON 1 matches view file →
277 return types.create_plaintext_block(
278 # In v0, URL points to the text file content
279 # TODO: attribute this claim
280 text=block["url"],
281 id=block["id"],
libs/core/langchain_core/messages/block_translators/openai.py PYTHON 1 matches view file →
601 return document_citation
602
603 # TODO: standardise container_file_citation?
604 non_standard_annotation: types.NonStandardAnnotation = {
605 "type": "non_standard_annotation",
libs/core/langchain_core/messages/content.py PYTHON 5 matches view file →
274 call result in events when multiple concurrent tool calls are made.
275 """
276 # TODO: Consider making this NotRequired[str] in the future.
277
278 name: str
· · ·
308 """
309
310 # TODO: Consider making fields NotRequired[str] in the future.
311
312 type: Literal["tool_call_chunk"]
· · ·
319 call result in events when multiple concurrent tool calls are made.
320 """
321 # TODO: Consider making this NotRequired[str] in the future.
322
323 name: str | None
· · ·
341 """
342
343 # TODO: Consider making fields NotRequired[str] in the future.
344
345 type: Literal["invalid_tool_call"]
· · ·
352 call result in events when multiple concurrent tool calls are made.
353 """
354 # TODO: Consider making this NotRequired[str] in the future.
355
356 name: str | None
libs/core/langchain_core/messages/utils.py PYTHON 1 matches view file →
1119
1120
1121# TODO: Update so validation errors (for token_counter, for example) are raised on
1122# init not at runtime.
1123@_runnable_support
libs/core/langchain_core/output_parsers/base.py PYTHON 1 matches view file →
310 return await run_in_executor(None, self.parse, text)
311
312 # TODO: rename 'completion' -> 'text'.
313 def parse_with_prompt(
314 self,
libs/core/langchain_core/output_parsers/openai_tools.py PYTHON 1 matches view file →
310 """The tools to parse."""
311
312 # TODO: Support more granular streaming of objects.
313 # Currently only streams once all Pydantic object fields are present.
314 def parse_result(self, result: list[Generation], *, partial: bool = False) -> Any:
libs/core/langchain_core/prompts/chat.py PYTHON 3 matches view file →
346 Human-readable representation.
347 """
348 # TODO: Handle partials
349 title = self.__class__.__name__.replace("MessagePromptTemplate", " Message")
350 title = get_msg_title_repr(title, bold=html)
· · ·
654 Human-readable representation.
655 """
656 # TODO: Handle partials
657 title = self.__class__.__name__.replace("MessagePromptTemplate", " Message")
658 title = get_msg_title_repr(title, bold=html)
· · ·
1331 Human-readable representation.
1332 """
1333 # TODO: handle partials
1334 return "\n\n".join(msg.pretty_repr(html=html) for msg in self.messages)
1335
libs/core/langchain_core/prompts/string.py PYTHON 1 matches view file →
376 A pretty representation of the prompt.
377 """
378 # TODO: handle partials
379 dummy_vars = {
380 input_var: "{" + f"{input_var}" + "}" for input_var in self.input_variables
libs/core/langchain_core/tools/base.py PYTHON 1 matches view file →
426 if args_schema_type is not None and args_schema_type == BaseModel:
427 # Throw errors for common mis-annotations.
428 # TODO: Use get_args / get_origin and fully
429 # specify valid annotations.
430 typehint_mandate = """
libs/core/langchain_core/tools/simple.py PYTHON 1 matches view file →
155 )
156
157 # TODO: this is for backwards compatibility, remove in future
158 def __init__(
159 self, name: str, func: Callable | None, description: str, **kwargs: Any
libs/core/langchain_core/tools/structured.py PYTHON 1 matches view file →
56 # --- Runnable ---
57
58 # TODO: Is this needed?
59 @override
60 async def ainvoke(
libs/core/langchain_core/tracers/core.py PYTHON 1 matches view file →
231 parent_run_id=parent_run_id,
232 serialized=serialized,
233 # TODO: Figure out how to expose kwargs here
234 inputs={"prompts": prompts},
235 extra=kwargs,
libs/core/langchain_core/utils/_merge.py PYTHON 2 matches view file →
44 raise TypeError(msg)
45 elif isinstance(merged[right_k], str):
46 # TODO: Add below special handling for 'type' key in 0.3 and remove
47 # merge_lists 'type' logic.
48 #
· · ·
129 ]
130 if to_merge:
131 # TODO: Remove this once merge_dict is updated with special
132 # handling for 'type'.
133 if (left_type := merged[to_merge[0]].get("type")) and (
libs/core/langchain_core/utils/mustache.py PYTHON 1 matches view file →
630 # Gather up all the tags inside the section
631 # (And don't be tricked by nested end tags with the same key)
632 # TODO: This feels like it still has edge cases, no?
633 tags = []
634 tags_with_same_key = 0
libs/core/langchain_core/utils/pydantic.py PYTHON 1 matches view file →
260 )
261
262 # TODO(0.3): Determine if there is a more "pydantic" way to preserve annotations.
263 # This is done to preserve __annotations__ when working with pydantic 2.x
264 # and using the Annotated type with TypedDict.
libs/core/langchain_core/vectorstores/in_memory.py PYTHON 1 matches view file →
165 embedding: embedding function to use.
166 """
167 # TODO: would be nice to change to
168 # dict[str, Document] at some point (will be a breaking change)
169 self.store: dict[str, dict[str, Any]] = {}
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.