agentscope-ai / agentscope-ai/agentscope-typescript

feat: support KimiChat API and add unit tests

Aperta
#8 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
help wanted
Lingua principale
TypeScript
Stelle
81
Fork
19
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.