Skip to content

扣子智能体 API Java SDK 是对扣子智能体的API进行了封装,方便Java开发者接入系统调用。

Notifications You must be signed in to change notification settings

yangbuyiya/coze-sdk-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation


COZE-SDK-JAVA v1.0.3

扣子智能体 API Java SDK 是对扣子智能体的API进行了封装,方便Java开发者接入系统调用。

您是第个访问COZE-SDK-JAVA~

接入方式

引入依赖

Maven

最新版本获取:https://central.sonatype.com/artifact/com.yby6.coze/coze-sdk-java

<dependency>
    <groupId>com.yby6.coze</groupId>
    <artifactId>coze-sdk-java</artifactId>
    <version>${last}</version>
</dependency>

Gradle

implementation group: 'com.yby6.coze', name: 'coze-sdk-java', version: '${last}'

单元测试

@Before
public void test_session_Factory() {
    // 1. 配置文件
    CoZeConfiguration cozeConfiguration = new CoZeConfiguration();
    cozeConfiguration.setApiHost("https://api.coze.cn/open_api/");
    cozeConfiguration.setApiKey("Bearer 你的APIKEY");
    cozeConfiguration.setLevel(HttpLoggingInterceptor.Level.HEADERS);
    // 2. 会话工厂
    DefaultCoZeSessionFactory factory = new DefaultCoZeSessionFactory(cozeConfiguration);
    // 3. 开启会话
    this.coZeSession = factory.openSession();
    log.info("openAiSession:{}", coZeSession);
}

About

扣子智能体 API Java SDK 是对扣子智能体的API进行了封装,方便Java开发者接入系统调用。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages