agentscope-ai / agentscope-ai/agentscope-typescript

feat: support Gemini API and add unit tests

オープン
#7 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted
主要言語
TypeScript
スター
81
フォーク
19
PR マージ指標
30日以内にマージされた PR はありません

説明

The implementation includes the following files and classes:
- `GeminiChatModel` in `packages/agentscope/src/model/gemini-model.ts`
- Unit tests in `packages/agentscope/tests/model/gemini-model.test.ts`

The expected functionalities to support:
- Streaming and non-streaming responses
- Tool calling API
- Tool choice

The unit tests should use mock responses to cover the following cases:
- `call` function with:
- Streaming response with tool calling
- Non-streaming response with tool calling
- `_formatToolChoice` method
- `_formatToolSchemas` method

Example implementation refers to [dashscope](https://github.com/agentscope-ai/agentscope-typescript/blob/main/packages/agentscope/src/model/dashscope-model.ts) and its [unit tests](https://github.com/agentscope-ai/agentscope-typescript/blob/main/packages/agentscope/src/model/dashscope-model.test.ts)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。