mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 19:52:02 +00:00
feat: promote Agent Skills from experimental to stable
Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
parent
139e621410
commit
a4ffc6eb24
28 changed files with 196 additions and 341 deletions
|
|
@ -45,7 +45,7 @@ class SessionTest {
|
|||
private static final Logger logger = LoggerFactory.getLogger(SessionTest.class);
|
||||
@Test
|
||||
public void testSession() throws AgentInitializeException, SessionNewException, IOException {
|
||||
AcpClient acpClient = new AcpClient(new ProcessTransport(new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp", "--experimental-skills", "-y"})));
|
||||
AcpClient acpClient = new AcpClient(new ProcessTransport(new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp", "-y"})));
|
||||
try {
|
||||
acpClient.sendPrompt(Collections.singletonList(new TextContent("你是谁")), new AgentEventConsumer().setContentEventConsumer(new ContentEventSimpleConsumer(){
|
||||
@Override
|
||||
|
|
@ -86,7 +86,7 @@ class SessionTest {
|
|||
@Test
|
||||
void test() throws SessionNewException, AgentInitializeException, IOException {
|
||||
Transport transport = new ProcessTransport(
|
||||
new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp", "--experimental-skills", "-y"}));
|
||||
new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp", "-y"}));
|
||||
AcpClient acpClient = new AcpClient(transport, new InitializeRequestParams().setClientCapabilities(
|
||||
new ClientCapabilities()
|
||||
.setTerminal(true)
|
||||
|
|
@ -98,7 +98,7 @@ class SessionTest {
|
|||
@Test
|
||||
void testPermission() throws AgentInitializeException, SessionNewException, IOException {
|
||||
Transport transport = new ProcessTransport(
|
||||
new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp", "--experimental-skills"}));
|
||||
new ProcessTransportOptions().setCommandArgs(new String[] {"qwen", "--acp"}));
|
||||
AcpClient acpClient = new AcpClient(transport, new InitializeRequestParams().setClientCapabilities(
|
||||
new ClientCapabilities()
|
||||
.setTerminal(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue