-
Notifications
You must be signed in to change notification settings - Fork 906
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Diwank Singh Tomer <[email protected]>
- Loading branch information
Showing
26 changed files
with
630 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,14 @@ | |
"name": "@julep/sdk", | ||
"version": "0.2.2", | ||
"description": "Julep is a platform for creating agents with long-term memory", | ||
"keywords": ["julep-ai", "julep", "agents", "llms", "memory", "ai"], | ||
"keywords": [ | ||
"julep-ai", | ||
"julep", | ||
"agents", | ||
"llms", | ||
"memory", | ||
"ai" | ||
], | ||
"author": { | ||
"name": "Julep", | ||
"email": "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ export interface Doc { | |
content: string; | ||
/** ID of doc */ | ||
id: string; | ||
/** Doc created at */ | ||
createdAt: Date; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
import * as JulepApi from ".."; | ||
export interface JobStatus { | ||
/** Name of the job */ | ||
name: string; | ||
/** Reason for current state */ | ||
reason?: string; | ||
/** Job created at (RFC-3339 format) */ | ||
createdAt: Date; | ||
/** Job updated at (RFC-3339 format) */ | ||
updatedAt?: Date; | ||
/** Job id (UUID) */ | ||
id: string; | ||
/** Whether this Job supports progress updates */ | ||
hasProgress?: boolean; | ||
/** Progress percentage */ | ||
progress?: number; | ||
/** Current state (one of: pending, in_progress, retrying, succeeded, aborted, failed) */ | ||
state: JulepApi.JobStatusState; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
"use strict"; | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
/** | ||
* Current state (one of: pending, in_progress, retrying, succeeded, aborted, failed) | ||
*/ | ||
export declare type JobStatusState = | ||
| "pending" | ||
| "in_progress" | ||
| "retrying" | ||
| "succeeded" | ||
| "aborted" | ||
| "failed"; | ||
export declare const JobStatusState: { | ||
readonly Pending: "pending"; | ||
readonly InProgress: "in_progress"; | ||
readonly Retrying: "retrying"; | ||
readonly Succeeded: "succeeded"; | ||
readonly Aborted: "aborted"; | ||
readonly Failed: "failed"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JobStatusState = void 0; | ||
exports.JobStatusState = { | ||
Pending: "pending", | ||
InProgress: "in_progress", | ||
Retrying: "retrying", | ||
Succeeded: "succeeded", | ||
Aborted: "aborted", | ||
Failed: "failed", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,5 +13,6 @@ export declare namespace Doc { | |
title: string; | ||
content: string; | ||
id: string; | ||
created_at: string; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
import * as serializers from ".."; | ||
import * as JulepApi from "../../api"; | ||
import * as core from "../../core"; | ||
export declare const JobStatus: core.serialization.ObjectSchema< | ||
serializers.JobStatus.Raw, | ||
JulepApi.JobStatus | ||
>; | ||
export declare namespace JobStatus { | ||
interface Raw { | ||
name: string; | ||
reason?: string | null; | ||
created_at: string; | ||
updated_at?: string | null; | ||
id: string; | ||
has_progress?: boolean | null; | ||
progress?: number | null; | ||
state: serializers.JobStatusState.Raw; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
"use strict"; | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
var __createBinding = | ||
(this && this.__createBinding) || | ||
(Object.create | ||
? function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if ( | ||
!desc || | ||
("get" in desc ? !m.__esModule : desc.writable || desc.configurable) | ||
) { | ||
desc = { | ||
enumerable: true, | ||
get: function () { | ||
return m[k]; | ||
}, | ||
}; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
} | ||
: function (o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
}); | ||
var __setModuleDefault = | ||
(this && this.__setModuleDefault) || | ||
(Object.create | ||
? function (o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
} | ||
: function (o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = | ||
(this && this.__importStar) || | ||
function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) | ||
for (var k in mod) | ||
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) | ||
__createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = | ||
(this && this.__awaiter) || | ||
function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { | ||
return value instanceof P | ||
? value | ||
: new P(function (resolve) { | ||
resolve(value); | ||
}); | ||
} | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { | ||
try { | ||
step(generator.next(value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
function rejected(value) { | ||
try { | ||
step(generator["throw"](value)); | ||
} catch (e) { | ||
reject(e); | ||
} | ||
} | ||
function step(result) { | ||
result.done | ||
? resolve(result.value) | ||
: adopt(result.value).then(fulfilled, rejected); | ||
} | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.JobStatus = void 0; | ||
const core = __importStar(require("../../core")); | ||
exports.JobStatus = core.serialization.object({ | ||
name: core.serialization.string(), | ||
reason: core.serialization.string().optional(), | ||
createdAt: core.serialization.property( | ||
"created_at", | ||
core.serialization.date(), | ||
), | ||
updatedAt: core.serialization.property( | ||
"updated_at", | ||
core.serialization.date().optional(), | ||
), | ||
id: core.serialization.string(), | ||
hasProgress: core.serialization.property( | ||
"has_progress", | ||
core.serialization.boolean().optional(), | ||
), | ||
progress: core.serialization.number().optional(), | ||
state: core.serialization.lazy(() => | ||
__awaiter(void 0, void 0, void 0, function* () { | ||
return (yield Promise.resolve().then(() => __importStar(require("..")))) | ||
.JobStatusState; | ||
}), | ||
), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This file was auto-generated by Fern from our API Definition. | ||
*/ | ||
import * as serializers from ".."; | ||
import * as JulepApi from "../../api"; | ||
import * as core from "../../core"; | ||
export declare const JobStatusState: core.serialization.Schema< | ||
serializers.JobStatusState.Raw, | ||
JulepApi.JobStatusState | ||
>; | ||
export declare namespace JobStatusState { | ||
type Raw = | ||
| "pending" | ||
| "in_progress" | ||
| "retrying" | ||
| "succeeded" | ||
| "aborted" | ||
| "failed"; | ||
} |
Oops, something went wrong.