Skip to content

Commit 5de5a03

Browse files
authored
Merge pull request #4 from meta-llama/fix-gradle-build
Fix invalid type references on gradle build
2 parents ee76c5a + 1b97190 commit 5de5a03

File tree

3 files changed

+49
-17
lines changed

3 files changed

+49
-17
lines changed

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Gradle files
2+
.gradle/
3+
build/
4+
5+
# Local configuration file (sdk path, etc)
6+
local.properties
7+
8+
# Log/OS Files
9+
*.log
10+
11+
# Android Studio generated files and folders
12+
captures/
13+
.externalNativeBuild/
14+
.cxx/
15+
*.apk
16+
output.json
17+
18+
# IntelliJ
19+
*.iml
20+
.idea/
21+
misc.xml
22+
deploymentTargetDropDown.xml
23+
render.experimental.xml
24+
25+
# Keystore files
26+
*.jks
27+
*.keystore
28+
29+
# Google Services (e.g. APIs or Firebase)
30+
google-services.json
31+
32+
# Android Profiling
33+
*.hprof
34+
35+
.DS_Store

README.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,19 @@ The REST API documentation can be found on [llama-stack](https://docs.llama-sta
1414

1515
## Getting started
1616

17-
### Install dependencies
17+
### Build the jar packages
1818

19-
#### Gradle
19+
In your terminal, under the `llama-stack-client-kotlin` directory, run the following command:
2020

21-
```kotlin
22-
implementation("com.llama_stack_client.api:llama-stack-client-kotlin:0.0.1-alpha.0")
21+
```
22+
export SKIP_MOCK_TESTS=true
23+
./gradlew build
2324
```
2425

25-
#### Maven
26+
Output: .jar files located in the build/libs directory of the respective client folders (llama-stack-client-kotlin, llama-stack-client-kotlin-client-okhttp, llama-stack-client-kotlin-core)
2627

27-
```xml
28-
<dependency>
29-
<groupId>com.llama_stack_client.api</groupId>
30-
<artifactId>llama-stack-client-kotlin</artifactId>
31-
<version>0.0.1-alpha.0</version>
32-
</dependency>
33-
```
28+
29+
Note: Maven dependencies are not available at the moment. We will made it available in the near future once the SDK stabilizes. For now, build the Kotlin SDK jars manually and include them in your projects.
3430

3531
### Configure the client
3632

llama-stack-client-kotlin-core/src/main/kotlin/com/llama_stack_client/api/models/AgentCreateParams.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3834,7 +3834,7 @@ constructor(
38343834
@ExcludeMissing
38353835
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties
38363836

3837-
fun validate(): Type = apply {
3837+
fun validate(): QueryGeneratorConfig.Type = apply {
38383838
if (!validated) {
38393839
type()
38403840
validated = true
@@ -3849,8 +3849,8 @@ constructor(
38493849
}
38503850

38513851
return other is Type &&
3852-
this.type == other.type &&
3853-
this.additionalProperties == other.additionalProperties
3852+
this.type == other &&
3853+
this.additionalProperties == this.additionalProperties
38543854
}
38553855

38563856
override fun hashCode(): Int {
@@ -3874,7 +3874,7 @@ constructor(
38743874
private var additionalProperties: MutableMap<String, JsonValue> =
38753875
mutableMapOf()
38763876

3877-
internal fun from(type: Type) = apply {
3877+
internal fun from(type: QueryGeneratorConfig.Type) = apply {
38783878
this.type = type.type
38793879
additionalProperties(type.additionalProperties)
38803880
}
@@ -3900,7 +3900,8 @@ constructor(
39003900
additionalProperties: Map<String, JsonValue>
39013901
) = apply { this.additionalProperties.putAll(additionalProperties) }
39023902

3903-
fun build(): Type = Type(type, additionalProperties.toUnmodifiable())
3903+
fun build(): QueryGeneratorConfig.Type =
3904+
Type(type, additionalProperties.toUnmodifiable())
39043905
}
39053906

39063907
class Type

0 commit comments

Comments
 (0)