Skip to content

Commit

Permalink
Merge branch 'main' into feature/add-agent-status
Browse files Browse the repository at this point in the history
  • Loading branch information
sjorsdev authored May 1, 2024
2 parents 6c50ad6 + 799fdf6 commit a8145ac
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 4 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,31 @@

# AIGENTIC

Framework to configure AI agents
Framework to configure and run AI agents


## How to use

To build an agent which uses OpenAI as model provider with local (non http tools) use the following dependencies:

```
implementation("community.flock.aigentic:core:0.0.4-SNAPSHOT")
implementation("community.flock.aigentic:openai:0.0.4-SNAPSHOT")
// CIO is for JVM, Android, Native. For other platforms pick the correct engine: https://ktor.io/docs/client-engines.html#platforms
implementation(libs.ktor.client.cio)
```

## Example agent

[AdministrativeAgentExample](src/example/src/commonMain/kotlin/community/flock/aigentic/example/AdministrativeAgentExample.kt)

### How to use snapshots

In order to use SNAPSHOT versions of Aigentic please make sure both maven central and the Sonatype snapshot repository are configured:

```
repositories {
mavenCentral()
maven { url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") }
}
```
1 change: 1 addition & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
org.gradle.unsafe.configuration-cache=false
1 change: 1 addition & 0 deletions src/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ kotlin {
api(libs.coroutines.core)
implementation(libs.serialization.json)
implementation(libs.kotlinx.datetime)
api(libs.serialization.json)
}
}
val commonTest by getting {
Expand Down
5 changes: 2 additions & 3 deletions src/example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
api(libs.coroutines.core)
implementation(libs.serialization.json) // FIXME temporary needed for tool Handler arguments
implementation(project(":src:core"))
implementation(project(":src:providers:openai"))
}
}

val jvmMain by getting {
dependencies {
implementation(libs.ktor.client.okhttp)
// CIO is for JVM, Android, Native. For other platforms pick the correct engine: https://ktor.io/docs/client-engines.html#platforms
implementation(libs.ktor.client.cio)
}
}
}
Expand Down

0 comments on commit a8145ac

Please sign in to comment.