Skip to content

docs: update list_tools to list_tools_async in examples#418

Merged
rayrayraykk merged 1 commit intoagentscope-ai:mainfrom
cainiao1992:main
Jan 26, 2026
Merged

docs: update list_tools to list_tools_async in examples#418
rayrayraykk merged 1 commit intoagentscope-ai:mainfrom
cainiao1992:main

Conversation

@cainiao1992
Copy link
Copy Markdown
Contributor

@cainiao1992 cainiao1992 commented Jan 23, 2026

Description

docs: update list_tools to list_tools_async in examples

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactoring

Component(s) Affected

  • Engine
  • Sandbox
  • Tools
  • Common
  • Documentation
  • Tests
  • CI/CD

Checklist

  • Pre-commit hooks pass
  • Tests pass locally
  • Documentation updated (if needed)
  • Ready for review

Testing

[How to test these changes]

Additional Notes

[Optional: any other context]

@cainiao1992 cainiao1992 requested a review from a team January 23, 2026 16:21
@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @cainiao1992, 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 focuses on maintaining accuracy within the project's documentation by updating outdated API method calls. The change ensures that all examples demonstrating how to list tools in various sandbox environments now correctly use the asynchronous version of the method, providing users with up-to-date and functional code snippets.

Highlights

  • API Method Update: The list_tools() method has been consistently updated to list_tools_async() across all relevant documentation examples.
  • Documentation Consistency: This change ensures that all code examples in both English and Chinese README files and cookbook entries reflect the correct asynchronous API for listing tools.
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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

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 pull request 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 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. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

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

  1. 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.

@cla-assistant
Copy link
Copy Markdown

cla-assistant bot commented Jan 23, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation examples across multiple files (README.md, README_zh.md, and cookbook files) to replace list_tools with list_tools_async for asynchronous sandbox usage. This change aligns the documentation with the correct API, ensuring consistency and accuracy in the provided code samples. The modifications are straightforward and correct.

Copy link
Copy Markdown
Member

@rayrayraykk rayrayraykk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch!

@rayrayraykk rayrayraykk merged commit 27e669d into agentscope-ai:main Jan 26, 2026
7 checks passed
@rayrayraykk
Copy link
Copy Markdown
Member

@all-contributors please add @cainiao1992 for doc

@allcontributors
Copy link
Copy Markdown
Contributor

@rayrayraykk

I've put up a pull request to add @cainiao1992! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants