[feat] add to_runnable decorator & lcc tool message add name and tool_call_id#45
Merged
[feat] add to_runnable decorator & lcc tool message add name and tool_call_id#45
Conversation
f8828b0 to
c8836b9
Compare
9acb5d6 to
b021371
Compare
b80c933 to
a41add3
Compare
taoyifan89
reviewed
Jan 27, 2026
cozeloop/decorator/decorator.py
Outdated
| from typing import Optional, Callable, Any, overload, Dict, Generic, Iterator, TypeVar, List, cast, AsyncIterator | ||
| from functools import wraps | ||
|
|
||
| from langchain_core.runnables import RunnableLambda, RunnableConfig |
Collaborator
There was a problem hiding this comment.
这个是不是应该放intergration/langchain里面,不用langchain的,照理都不需要import langchain_core?
Collaborator
Author
There was a problem hiding this comment.
感觉不用挪包,只需要把import放进to_runnable注解就可以了,因为有通用方法,而且都是注解,放在一个注解类里也更合理些。
| def set_deployment_env(self, deployment_env: str) -> None: | ||
| self.set_tags({DEPLOYMENT_ENV: deployment_env}) | ||
|
|
||
| def set_finish_time(self, finish_time: datetime) -> None: |
taoyifan89
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.