agentscope-ai / agentscope-ai/agentscope
[Bug]:crypto is not defined
- Linguagem predominante
- Python
- Estrelas
- 31.6k
- Forks
- 3.5k
- Merge médio
- 1d 16h
- PRs com merge (30d)
- 103
Descrição
**AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.**
**Describe the bug**
使用as_studio, 与创建的agent(默认会有一个Friday)对话时, 提示crypto is not defined
**To Reproduce**
Steps to reproduce the behavior:
....
**Expected behavior**
A clear and concise description of what you expected to happen.
**Error messages**
D:\SoftwareInstalled\Nodejs\node_global\node_modules\@agentscope\studio\dist\server\src\trpc\socket.js:310
const replyId = crypto.randomUUID();
^
ReferenceError: crypto is not defined
**Environment (please complete the following information):**
- AgentScope Version: 1.0
- Python Version: 3.11
- OS: windows
**Additional context**
解决方法:
在 @agentscope\studio\dist\server\src\trpc\socket.js 文件中上方加入代码
// 引入Node.js内置的crypto模块
const crypto = require('crypto');
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.