agentscope-ai / agentscope-ai/agentscope-typescript

feat: support KimiChat API and add unit tests

Ouverte
#8 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
help wanted
Langage dominant
TypeScript
Étoiles
81
Forks
19
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

The implementation includes the following files and classes:
- `KimiChatModel` in `packages/agentscope/src/model/kimi-model.ts`
- Unit tests in `packages/agentscope/tests/model/kimi-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)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.