356 matches across 25 files for TODO lang:Python lang:Python
snippet_mode: grep · sorted by relevance
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)
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
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")
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
299 return blocks
300
301▶ # TODO: remove this logic if possible, reducing breaking nature of changes
302 @model_validator(mode="before")
303 @classmethod
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}"
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.
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"],
601 return document_citation
602
603▶ # TODO: standardise container_file_citation?
604 non_standard_annotation: types.NonStandardAnnotation = {
605 "type": "non_standard_annotation",
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
1124
1125
1126▶# TODO: Update so validation errors (for token_counter, for example) are raised on
1127# init not at runtime.
1128@_runnable_support
310 return await run_in_executor(None, self.parse, text)
311
312▶ # TODO: rename 'completion' -> 'text'.
313 def parse_with_prompt(
314 self,
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:
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
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
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 = """
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
56 # --- Runnable ---
57
58▶ # TODO: Is this needed?
59 @override
60 async def ainvoke(
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,
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 (
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
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.
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]] = {}
1733 ),
1734 ]
1735▶ # TODO: consider changing this
1736 expected = (
1737 "Human: Hello\n"
2903 assert len(parent_run.child_runs) == 2
2904 router_run = parent_run.child_runs[1]
2905▶ assert router_run.name == "RunnableSequence" # TODO: should be RunnableRouter
2906 assert len(router_run.child_runs) == 2
2907
· · ·
3225 ]
3226 if not (
3227▶ # TODO: Rewrite properly the statement above
3228 streamed_chunks[0] == {"llm": "i"}
3229 or {"chat": _any_id_ai_message_chunk(content="i")}
Search syntax
auth login | both terms (AND is implicit) |
auth OR login | either term |
NOT path:vendor | exclude matches |
"exact phrase" | quoted exact match |
/func\s+Test/ | regex |
handler~1 | fuzzy (Levenshtein 1) |
file:*_test.go | filename glob |
path:pkg/auth/** | full path glob |
lang:go | language 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.