https://github.com/xemantic/anthropic-sdk-kotlin-jvm-template
A Kotlin template repository which can be forked to use anthropic-sdk-kotlin straight away in JVM environment.
https://github.com/xemantic/anthropic-sdk-kotlin-jvm-template
claude claude-3 claude-ai claude-api kotlin machine-learning template template-project
Last synced: 7 months ago
JSON representation
A Kotlin template repository which can be forked to use anthropic-sdk-kotlin straight away in JVM environment.
- Host: GitHub
- URL: https://github.com/xemantic/anthropic-sdk-kotlin-jvm-template
- Owner: xemantic
- License: mit
- Created: 2024-10-17T08:49:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T17:15:30.000Z (12 months ago)
- Last Synced: 2025-01-21T08:07:37.294Z (9 months ago)
- Topics: claude, claude-3, claude-ai, claude-api, kotlin, machine-learning, template, template-project
- Language: Kotlin
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# anthropic-sdk-kotlin-jvm-template
A Kotlin template repository which can be forked to use
[anthropic-sdk-kotlin](https://github.com/xemantic/anthropic-sdk-kotlin)
straight away in JVM environment.You can use this project as a
[template repository](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)
on GitHub.After cloning, you can start using it straight away by opening
[ClaudeCanUseTools.kt](src/main/kotlin/ClaudeCanUseTools.kt) file and adjusting it to your needs.Build the project with:
```shell
./gradlew build
```Running:
```shell
./gradlew build fatJar
```Will create
[build/libs/anthropic-sdk-kotlin-jvm-template-0.1-SNAPSHOT-fat.jar](build/libs/anthropic-sdk-kotlin-jvm-template-0.1-SNAPSHOT-fat.jar)Which you can execute directly with:
```shell
java -jar build/libs/anthropic-sdk-kotlin-jvm-template-0.1-SNAPSHOT-fat.jar
```Follow `TODO` comments in the sourcecode for adjustments. Don't forget about changes to:
* [settings.gradle.kts](settings.gradle.kts)
* [gradle.properties](gradle.properties)
* [build.gradle.kts](build.gradle.kts)