Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update SDKs #333

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions agents-api/agents_api/autogen/openapi_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: openapi.yaml
# timestamp: 2024-05-09T11:41:12+00:00
# timestamp: 2024-05-16T13:06:33+00:00

from __future__ import annotations

Expand Down Expand Up @@ -585,12 +585,16 @@ class AgentDefaultSettings(BaseModel):
"""


class ContentItem(RootModel[str]):
root: Annotated[str, Field(min_length=1)]


class Doc(BaseModel):
title: str
"""
Title describing what this bit of information contains
"""
content: str
content: List[ContentItem] | str
"""
Information content
"""
Expand All @@ -608,10 +612,6 @@ class Doc(BaseModel):
"""


class ContentItem(RootModel[str]):
root: Annotated[str, Field(min_length=1)]


class CreateDoc(BaseModel):
title: str
"""
Expand Down
489 changes: 246 additions & 243 deletions agents-api/poetry.lock

Large diffs are not rendered by default.

50 changes: 20 additions & 30 deletions docs/js-sdk-docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@julep/sdk / [Modules](modules.md)
@julep/sdk / [Exports](modules.md)

<div align="center">
<img src="https://socialify.git.ci/julep-ai/julep/image?description=1&descriptionEditable=Open-source%20platform%20for%20building%20stateful%20AI%20apps&font=Source%20Code%20Pro&logo=https%3A%2F%2Fraw.githubusercontent.com%2Fjulep-ai%2Fjulep%2Fdev%2F.github%2Fjulep-logo.svg&owner=1&pattern=Solid&stargazers=1&theme=Auto" alt="julep" width="640" height="320" />
Expand Down Expand Up @@ -39,34 +39,32 @@ Start your project with conversation history, support for any LLM, agentic workf

---
## Why Julep?
We've built a lot of AI apps and understand how difficult it is to evaluate hundreds of tools, techniques, and models, and then make them work well together.
We've built a lot of AI apps and understand how difficult it is to evaluate hundreds of tools, techniques, and models, and then make them work well together.

**The Problem**
**The Problems**
1. The barrier to making LLM apps with memory, knowledge & tools is too high.
2. Agentic behaviour is hard to control when done through multi-agent frameworks.

Even for simple apps you have to:
- pick the right language model for your use case
- pick the right framework
- pick the right embedding model
- choose the vector store and RAG pipeline
- build integrations
- tweak all of the parameters (temp, penalty, max tokens, similarity thresholds, chunk size, and so on)
- write and iterate on prompts for them to work

**The Solution**:
Julep eases the burden and time taken to get up and running with any AI app.

- **Statefulness By Design**: Build AI apps without needing to write code to embed, save and retrieve conversation history. Deals with context windows by using CozoDB; a transactional, relational-graph-vector database.
- **Use and switch between any LLMs anytime**: Switch and use different LLMs, providers and models, self-hosted or otherwise by changing only *one line of code*
- **Automatic Function Calling**: No need to handle function calling manually. Julep deals with calling the function, parsing the response, retrying in case of failures and passing the response into the context.
**The Solution**:
- **Statefulness By Design**: Manages context by default. Uses [CozoDB](https://cozodb.org/) to save & retrieve conversation history, OpenAPI specification tools & documents.
- **Support for Users & Agents**: Allows creating different user <-> agent interactions like `One Agent <-> Many Users`; `Many Agents <-> One User` etc. Read more: https://docs.julep.ai/concepts/
- **Use and switch between any LLMs anytime**: Switch and use different LLMs, providers and models, self-hosted or otherwise.
- **Production-ready**: Julep comes ready to be deployed to production using Docker Compose. Support for k8s coming soon!
- **90+ tools built-in**: Connect your AI app to 150+ third-party applications using [Composio](https://docs.composio.dev/framework/julep/) natively.
- ***GitHub Actions-like workflows for task**: Define agentic workflows to be executed asynchronously without worrying about timeouts.
> (*) Features coming soon!
- ***GitHub Actions-like workflows for tasks**: Define agentic workflows to be executed asynchronously with one ore more without worrying about timeouts or multiplying hallucinations.

> (*) Coming soon!

<!-- ![alt text](image.png) -->

## Quickstart
### Option 1: Install and run Julep locally
### Option 1: Use the Julep Cloud
Our hosted platform is in Beta!

To get access:
[Join our Discord](https://discord.com/invite/JTSBGRZrzj) or Drop a "Hey" over at [email protected]!

### Option 2: Install and run Julep locally
- Download the `docker-compose.yml` file along with the `.env` file for configuration to run the Julep platform locally

```bash
Expand All @@ -81,21 +79,13 @@ docker compose up -d
```
- The API would now be available at: `http://0.0.0.0:8080`

- Next, add your OpenAI API Key to the `.env`
- Next, add your OpenAI/Anthropic API Key to the `.env`

- Set your environment variables
```bash
export JULEP_API_KEY=myauthkey
export JULEP_API_URL=http://0.0.0.0:8080
```
### Option 2: Use the Julep Cloud
- Generate an API key from https://platform.julep.ai
- Set your environment variables

```bash
export JULEP_API_KEY=your_julep_api_key
export JULEP_API_URL=https://api-alpha.julep.ai
```

### Installation

Expand Down
75 changes: 0 additions & 75 deletions docs/js-sdk-docs/classes/api.BaseHttpRequest.md

This file was deleted.

14 changes: 7 additions & 7 deletions docs/js-sdk-docs/classes/api_JulepApiClient.JulepApiClient.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[@julep/sdk](../README.md) / [Modules](../modules.md) / [api/JulepApiClient](../modules/api_JulepApiClient.md) / JulepApiClient
[@julep/sdk](../README.md) / [Exports](../modules.md) / [api/JulepApiClient](../modules/api_JulepApiClient.md) / JulepApiClient

# Class: JulepApiClient

Expand All @@ -25,7 +25,7 @@

| Name | Type | Default value |
| :------ | :------ | :------ |
| `config?` | `Partial`\<[`OpenAPIConfig`](../modules/api.md#openapiconfig)\> | `undefined` |
| `config?` | `Partial`\<[`OpenAPIConfig`](../modules/api_core_OpenAPI.md#openapiconfig)\> | `undefined` |
| `HttpRequest` | `HttpRequestConstructor` | `AxiosHttpRequest` |

#### Returns
Expand All @@ -34,24 +34,24 @@

#### Defined in

[src/api/JulepApiClient.ts:13](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/JulepApiClient.ts#L13)
[src/api/JulepApiClient.ts:13](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/JulepApiClient.ts#L13)

## Properties

### default

• `Readonly` **default**: [`DefaultService`](api.DefaultService.md)
• `Readonly` **default**: [`DefaultService`](api_services_DefaultService.DefaultService.md)

#### Defined in

[src/api/JulepApiClient.ts:11](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/JulepApiClient.ts#L11)
[src/api/JulepApiClient.ts:11](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/JulepApiClient.ts#L11)

___

### request

• `Readonly` **request**: [`BaseHttpRequest`](api.BaseHttpRequest.md)
• `Readonly` **request**: [`BaseHttpRequest`](api_core_BaseHttpRequest.BaseHttpRequest.md)

#### Defined in

[src/api/JulepApiClient.ts:12](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/JulepApiClient.ts#L12)
[src/api/JulepApiClient.ts:12](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/JulepApiClient.ts#L12)
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[@julep/sdk](../README.md) / [Modules](../modules.md) / [api](../modules/api.md) / ApiError
[@julep/sdk](../README.md) / [Exports](../modules.md) / [api/core/ApiError](../modules/api_core_ApiError.md) / ApiError

# Class: ApiError

[api](../modules/api.md).ApiError
[api/core/ApiError](../modules/api_core_ApiError.md).ApiError

## Hierarchy

Expand All @@ -14,50 +14,50 @@

### Constructors

- [constructor](api.ApiError.md#constructor)
- [constructor](api_core_ApiError.ApiError.md#constructor)

### Properties

- [body](api.ApiError.md#body)
- [message](api.ApiError.md#message)
- [name](api.ApiError.md#name)
- [request](api.ApiError.md#request)
- [stack](api.ApiError.md#stack)
- [status](api.ApiError.md#status)
- [statusText](api.ApiError.md#statustext)
- [url](api.ApiError.md#url)
- [prepareStackTrace](api.ApiError.md#preparestacktrace)
- [stackTraceLimit](api.ApiError.md#stacktracelimit)
- [body](api_core_ApiError.ApiError.md#body)
- [message](api_core_ApiError.ApiError.md#message)
- [name](api_core_ApiError.ApiError.md#name)
- [request](api_core_ApiError.ApiError.md#request)
- [stack](api_core_ApiError.ApiError.md#stack)
- [status](api_core_ApiError.ApiError.md#status)
- [statusText](api_core_ApiError.ApiError.md#statustext)
- [url](api_core_ApiError.ApiError.md#url)
- [prepareStackTrace](api_core_ApiError.ApiError.md#preparestacktrace)
- [stackTraceLimit](api_core_ApiError.ApiError.md#stacktracelimit)

### Methods

- [captureStackTrace](api.ApiError.md#capturestacktrace)
- [captureStackTrace](api_core_ApiError.ApiError.md#capturestacktrace)

## Constructors

### constructor

• **new ApiError**(`request`, `response`, `message`): [`ApiError`](api.ApiError.md)
• **new ApiError**(`request`, `response`, `message`): [`ApiError`](api_core_ApiError.ApiError.md)

#### Parameters

| Name | Type |
| :------ | :------ |
| `request` | `ApiRequestOptions` |
| `response` | `ApiResult` |
| `request` | [`ApiRequestOptions`](../modules/api_core_ApiRequestOptions.md#apirequestoptions) |
| `response` | [`ApiResult`](../modules/api_core_ApiResult.md#apiresult) |
| `message` | `string` |

#### Returns

[`ApiError`](api.ApiError.md)
[`ApiError`](api_core_ApiError.ApiError.md)

#### Overrides

Error.constructor

#### Defined in

[src/api/core/ApiError.ts:15](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L15)
[src/api/core/ApiError.ts:15](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L15)

## Properties

Expand All @@ -67,7 +67,7 @@ Error.constructor

#### Defined in

[src/api/core/ApiError.ts:12](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L12)
[src/api/core/ApiError.ts:12](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L12)

___

Expand Down Expand Up @@ -101,11 +101,11 @@ ___

### request

• `Readonly` **request**: `ApiRequestOptions`
• `Readonly` **request**: [`ApiRequestOptions`](../modules/api_core_ApiRequestOptions.md#apirequestoptions)

#### Defined in

[src/api/core/ApiError.ts:13](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L13)
[src/api/core/ApiError.ts:13](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L13)

___

Expand All @@ -129,7 +129,7 @@ ___

#### Defined in

[src/api/core/ApiError.ts:10](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L10)
[src/api/core/ApiError.ts:10](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L10)

___

Expand All @@ -139,7 +139,7 @@ ___

#### Defined in

[src/api/core/ApiError.ts:11](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L11)
[src/api/core/ApiError.ts:11](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L11)

___

Expand All @@ -149,7 +149,7 @@ ___

#### Defined in

[src/api/core/ApiError.ts:9](https://github.com/julep-ai/julep/blob/5fd292d2b36b7388e396daec0948fa7ee9ff5bcd/sdks/ts/src/api/core/ApiError.ts#L9)
[src/api/core/ApiError.ts:9](https://github.com/julep-ai/julep/blob/035e7f91b35da5c19151875490e535b6923a07fe/sdks/ts/src/api/core/ApiError.ts#L9)

___

Expand Down
Loading
Loading