Skip to content

Commit

Permalink
feat: Update fern
Browse files Browse the repository at this point in the history
Signed-off-by: Diwank Singh Tomer <[email protected]>
  • Loading branch information
creatorrr committed Feb 9, 2024
1 parent 4546faa commit 7d0ed4a
Show file tree
Hide file tree
Showing 13 changed files with 196 additions and 526 deletions.
4 changes: 2 additions & 2 deletions fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "julep",
"version": "0.16.36"
}
"version": "0.17.2"
}
12 changes: 6 additions & 6 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ groups:
local:
generators:
- name: fernapi/fern-typescript-node-sdk
version: 0.9.4
version: 0.9.6
config:
namespaceExport: JulepApi
includeCredentialsOnCrossOriginRequests: true
outputSourceFiles: false
allowCustomFetcher: false
# includeCredentialsOnCrossOriginRequests: true
# outputSourceFiles: false
# allowCustomFetcher: false
defaultTimeoutInSeconds: 300 # 5 minutes
output:
location: local-file-system
path: ../sdks/js/src/api
- name: fernapi/fern-python-sdk
version: 0.7.5
version: 0.8.1
config:
timeout_in_seconds: 300 # 5 minutes
client_class_name: JulepApi
skip_formatting: false
# skip_formatting: false
output:
location: local-file-system
path: ../sdks/python/julep/api
134 changes: 41 additions & 93 deletions sdks/js/src/api/Client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export declare class JulepApiClient {
*
* @example
* await julepApi.createSession({
* userId: "string",
* agentId: "string"
* userId: "user_id",
* agentId: "agent_id"
* })
*/
createSession(
Expand All @@ -54,12 +54,7 @@ export declare class JulepApiClient {
* Create a new user
*
* @example
* await julepApi.createUser({
* additionalInformation: [{
* title: "string",
* content: "string"
* }]
* })
* await julepApi.createUser({})
*/
createUser(
request?: JulepApi.CreateUserRequest,
Expand All @@ -80,29 +75,9 @@ export declare class JulepApiClient {
*
* @example
* await julepApi.createAgent({
* name: "string",
* about: "string",
* instructions: [{
* content: "string"
* }],
* tools: [{
* type: JulepApi.CreateToolRequestType.Function,
* definition: {
* name: "string",
* parameters: {
* "string": "string"
* }
* }
* }],
* defaultSettings: {
* temperature: 1,
* topP: 1
* },
* model: "string",
* additionalInfo: [{
* title: "string",
* content: "string"
* }]
* name: "name",
* about: "about",
* model: "model"
* })
*/
createAgent(
Expand All @@ -113,7 +88,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.getSession("string")
* await julepApi.getSession("session_id")
*/
getSession(
sessionId: string,
Expand All @@ -123,8 +98,8 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.updateSession("string", {
* situation: "string"
* await julepApi.updateSession("session_id", {
* situation: "situation"
* })
*/
updateSession(
Expand All @@ -136,7 +111,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteSession("string")
* await julepApi.deleteSession("session_id")
*/
deleteSession(
sessionId: string,
Expand All @@ -146,7 +121,7 @@ export declare class JulepApiClient {
* Sorted (created_at descending)
*
* @example
* await julepApi.getSuggestions("string", {})
* await julepApi.getSuggestions("session_id", {})
*/
getSuggestions(
sessionId: string,
Expand All @@ -157,7 +132,7 @@ export declare class JulepApiClient {
* Sorted (created_at ascending)
*
* @example
* await julepApi.getHistory("string", {})
* await julepApi.getHistory("session_id", {})
*/
getHistory(
sessionId: string,
Expand All @@ -168,26 +143,11 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.chat("string", {
* await julepApi.chat("session_id", {
* accept: "application/json",
* responseFormat: {
* type: JulepApi.ChatSettingsResponseFormatType.Text
* },
* temperature: 1,
* topP: 1,
* messages: [{
* role: JulepApi.InputChatMlMessageRole.User,
* content: "string"
* }],
* tools: [{
* type: JulepApi.ToolType.Function,
* definition: {
* name: "string",
* parameters: {
* "string": "string"
* }
* },
* id: "string"
* content: "content"
* }]
* })
*/
Expand All @@ -200,8 +160,8 @@ export declare class JulepApiClient {
* Sorted (created_at descending)
*
* @example
* await julepApi.getAgentMemories("string", {
* query: "string"
* await julepApi.getAgentMemories("agent_id", {
* query: "query"
* })
*/
getAgentMemories(
Expand All @@ -213,7 +173,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.getUser("string")
* await julepApi.getUser("user_id")
*/
getUser(
userId: string,
Expand All @@ -223,7 +183,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.updateUser("string", {})
* await julepApi.updateUser("user_id", {})
*/
updateUser(
userId: string,
Expand All @@ -234,7 +194,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteUser("string")
* await julepApi.deleteUser("user_id")
*/
deleteUser(
userId: string,
Expand All @@ -244,7 +204,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.getAgent("string")
* await julepApi.getAgent("agent_id")
*/
getAgent(
agentId: string,
Expand All @@ -254,15 +214,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.updateAgent("string", {
* instructions: [{
* content: "string"
* }],
* defaultSettings: {
* temperature: 1,
* topP: 1
* }
* })
* await julepApi.updateAgent("agent_id", {})
*/
updateAgent(
agentId: string,
Expand All @@ -273,7 +225,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteAgent("string")
* await julepApi.deleteAgent("agent_id")
*/
deleteAgent(
agentId: string,
Expand All @@ -283,7 +235,7 @@ export declare class JulepApiClient {
* Sorted (created_at descending)
*
* @example
* await julepApi.getAgentAdditionalInfo("string", {})
* await julepApi.getAgentAdditionalInfo("agent_id", {})
*/
getAgentAdditionalInfo(
agentId: string,
Expand All @@ -294,9 +246,9 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.createAgentAdditionalInfo("string", {
* title: "string",
* content: "string"
* await julepApi.createAgentAdditionalInfo("agent_id", {
* title: "title",
* content: "content"
* })
*/
createAgentAdditionalInfo(
Expand All @@ -308,7 +260,7 @@ export declare class JulepApiClient {
* Sorted (created_at descending)
*
* @example
* await julepApi.getUserAdditionalInfo("string", {})
* await julepApi.getUserAdditionalInfo("user_id", {})
*/
getUserAdditionalInfo(
userId: string,
Expand All @@ -319,9 +271,9 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.createUserAdditionalInfo("string", {
* title: "string",
* content: "string"
* await julepApi.createUserAdditionalInfo("user_id", {
* title: "title",
* content: "content"
* })
*/
createUserAdditionalInfo(
Expand All @@ -333,7 +285,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteUserAdditionalInfo("string", "string")
* await julepApi.deleteUserAdditionalInfo("user_id", "additional_info_id")
*/
deleteUserAdditionalInfo(
userId: string,
Expand All @@ -344,7 +296,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteAgentAdditionalInfo("string", "string")
* await julepApi.deleteAgentAdditionalInfo("agent_id", "additional_info_id")
*/
deleteAgentAdditionalInfo(
agentId: string,
Expand All @@ -355,7 +307,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteAgentMemory("string", "string")
* await julepApi.deleteAgentMemory("agent_id", "memory_id")
*/
deleteAgentMemory(
agentId: string,
Expand All @@ -366,7 +318,7 @@ export declare class JulepApiClient {
* Sorted (created_at descending)
*
* @example
* await julepApi.getAgentTools("string", {})
* await julepApi.getAgentTools("agent_id", {})
*/
getAgentTools(
agentId: string,
Expand All @@ -377,13 +329,11 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.createAgentTool("string", {
* await julepApi.createAgentTool("agent_id", {
* type: JulepApi.CreateToolRequestType.Function,
* definition: {
* name: "string",
* parameters: {
* "string": "string"
* }
* name: "name",
* parameters: {}
* }
* })
*/
Expand All @@ -396,12 +346,10 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.updateAgentTool("string", "string", {
* await julepApi.updateAgentTool("agent_id", "tool_id", {
* definition: {
* name: "string",
* parameters: {
* "string": "string"
* }
* name: "name",
* parameters: {}
* }
* })
*/
Expand All @@ -415,7 +363,7 @@ export declare class JulepApiClient {
*
*
* @example
* await julepApi.deleteAgentTool("string", "string")
* await julepApi.deleteAgentTool("agent_id", "tool_id")
*/
deleteAgentTool(
agentId: string,
Expand Down
Loading

0 comments on commit 7d0ed4a

Please sign in to comment.