Conversation
wangxingjun778
commented
Jul 18, 2025
- Add examples for deep research
- Update run script
There was a problem hiding this comment.
Summary of Changes
Hello @wangxingjun778, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces new examples for deep research, specifically focusing on a computational chemistry task involving the simulation of external electric fields. Concurrently, it updates the core run.py script to reflect changes in the default research query and API client configurations, streamlining the setup for new research tasks.
Highlights
- New Research Examples: Added a detailed report (
report.md) and supporting search results (search.json) for a computational chemistry task. The report explains how external electric fields are simulated in theoretical calculations, focusing on the Oriented External Electric Field (OEEF) model, and includes a case study on methane oxidation catalysis. - Workflow Script Updates: Modified the
run.pyscript to update the default research query, adjust the OpenAI-compatible chat client'sbase_urlandmodel, and add a clarifying comment about the ExaSearch API key.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.
| Feature | Command | Description |
|---|---|---|
| Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
| Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
| Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
| Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
There was a problem hiding this comment.
Code Review
This pull request adds new examples for the deep research workflow and updates the run script with a more descriptive query and placeholder values. The changes are straightforward. I've provided a couple of suggestions to improve code and markup style for better readability and maintainability.
|
|
||
| 在没有外加电场时,反应主要分为两步:首先是Fe=O的氧原子夺取CH₄的一个氢原子(H-abstraction),越过能垒为25.44 kcal/mol的过渡态TS1;然后是新生成的Fe-OH上的羟基快速回弹(rebound)到·CH₃上,生成产物甲醇。 | ||
|
|
||
| <br> |
There was a problem hiding this comment.
For cleaner and more standard Markdown, it's better to avoid using HTML <br> tags for line breaks. A blank line after the image tag will provide separation and is more idiomatic in Markdown.
This suggestion applies to all similar occurrences in this file (e.g., lines 36, 54, 57, 67, 90, 93).
| <br> | |
|  |
| if __name__ == '__main__': | ||
|
|
||
| query: str = 'xxx' | ||
| query: str = 'Survey of the Deep Research on the AI Agent within the recent 3 month, including the latest research papers, open-source projects, and industry applications.' # noqa |
There was a problem hiding this comment.
This line is very long, which harms readability and maintainability. According to PEP 8, line length should be limited. Please reformat this long string by wrapping it in parentheses.
| query: str = 'Survey of the Deep Research on the AI Agent within the recent 3 month, including the latest research papers, open-source projects, and industry applications.' # noqa | |
| query: str = ( | |
| 'Survey of the Deep Research on the AI Agent within the recent 3 month, ' | |
| 'including the latest research papers, open-source projects, and industry applications.' | |
| ) # noqa |