-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add new codexgraph_agent #552
Conversation
ea756e8
to
04e0b71
Compare
|
||
return resp | ||
|
||
def _run(self, cypher_queries, retries=5, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后续,agent中核心方法 _run输入,输出要注明格式。如,这里的输入cypher_queries 是str, 输出是list。
其他agent也都加一下。
主要是之前其他的一些agent接入的时候用的非常wild,用raw prompt输入输出,返回也是str,或者yield str,
后续也会都改掉。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output format of _run has been added.
def set_action_type_and_message(self): | ||
pass | ||
|
||
def _run(self, user_query, file_path: str = '', **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要考虑yield 结果,支持streaming
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
for core function, please add unit test case later. |
e1aba00
to
81e1ad2
Compare
Change Summary
add new codexgraph_agent
see
apps/codexgraph_agent/README.md
Related issue number
Checklist
pre-commit install
andpre-commit run --all-files
before git commit, and passed lint check.