Skip to content

Commit 626fd01

Browse files
committed
Release 0.8.21
1 parent 303fe8e commit 626fd01

69 files changed

Lines changed: 1410 additions & 2369 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

jest.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ export default {
33
preset: "ts-jest",
44
testEnvironment: "node",
55
moduleNameMapper: {
6-
"^(?!.*node_modules)(.+)\\.js$": "$1",
6+
"(.+)\.js$": "$1",
77
},
88
};

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "humanloop",
3-
"version": "0.8.21-beta1",
3+
"version": "0.8.21",
44
"private": false,
55
"repository": "https://github.com/humanloop/humanloop-node",
66
"main": "./index.js",
@@ -26,6 +26,8 @@
2626
"@traceloop/instrumentation-cohere": ">=0.11.1",
2727
"@traceloop/instrumentation-openai": ">=0.11.3",
2828
"@traceloop/ai-semantic-conventions": ">=0.11.6",
29+
"dotenv": "^16.5.0",
30+
"commander": "^14.0.0",
2931
"cli-progress": "^3.12.0",
3032
"lodash": "^4.17.21"
3133
},
@@ -46,7 +48,6 @@
4648
"openai": "^4.74.0",
4749
"@anthropic-ai/sdk": "^0.32.1",
4850
"cohere-ai": "^7.15.0",
49-
"dotenv": "^16.4.6",
5051
"jsonschema": "^1.4.1",
5152
"@types/cli-progress": "^3.11.6",
5253
"@types/lodash": "4.14.74",
@@ -56,5 +57,8 @@
5657
"fs": false,
5758
"os": false,
5859
"path": false
60+
},
61+
"bin": {
62+
"humanloop": "./cli.js"
5963
}
6064
}

reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,7 +1342,7 @@ await client.prompts.updateMonitoring("pr_30gco7dx6JDq4200GVOHa", {
13421342
</dl>
13431343
</details>
13441344

1345-
<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">serialize</a>(id, { ...params }) -> void</code></summary>
1345+
<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">serialize</a>(id, { ...params }) -> string</code></summary>
13461346
<dl>
13471347
<dd>
13481348

@@ -7313,7 +7313,7 @@ await client.agents.updateMonitoring("ag_1234567890", {
73137313
</dl>
73147314
</details>
73157315

7316-
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">serialize</a>(id, { ...params }) -> void</code></summary>
7316+
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">serialize</a>(id, { ...params }) -> string</code></summary>
73177317
<dl>
73187318
<dd>
73197319

src/api/resources/agents/client/Client.ts

Lines changed: 306 additions & 180 deletions
Large diffs are not rendered by default.

src/api/resources/agents/client/requests/AgentLogRequest.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,14 @@ export interface AgentLogRequest {
8989
* - `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
9090
*/
9191
toolChoice?: Humanloop.AgentLogRequestToolChoice;
92-
/** Details of your Agent. A new Agent version will be created if the provided details are new. */
93-
agent?: Humanloop.AgentKernelRequest;
92+
/**
93+
* The Agent configuration to use. Two formats are supported:
94+
* - An object representing the details of the Agent configuration
95+
* - A string representing the raw contents of a .agent file
96+
*
97+
* A new Agent version will be created if the provided details do not match any existing version.
98+
*/
99+
agent?: Humanloop.AgentLogRequestAgent;
94100
/** When the logged event started. */
95101
startTime?: Date;
96102
/** When the logged event ended. */

src/api/resources/agents/client/requests/AgentsCallRequest.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@ export interface AgentsCallRequest {
3737
* - `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
3838
*/
3939
toolChoice?: Humanloop.AgentsCallRequestToolChoice;
40-
/** Details of your Agent. A new Agent version will be created if the provided details are new. */
41-
agent?: Humanloop.AgentKernelRequest;
40+
/**
41+
* The Agent configuration to use. Two formats are supported:
42+
* - An object representing the details of the Agent configuration
43+
* - A string representing the raw contents of a .agent file
44+
*
45+
* A new Agent version will be created if the provided details do not match any existing version.
46+
*/
47+
agent?: Humanloop.AgentsCallRequestAgent;
4248
/** The inputs passed to the prompt template. */
4349
inputs?: Record<string, unknown>;
4450
/** Identifies where the model was called from. */

src/api/resources/agents/client/requests/AgentsCallStreamRequest.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,14 @@ export interface AgentsCallStreamRequest {
3131
* - `{'type': 'function', 'function': {name': <TOOL_NAME>}}` forces the model to use the named function.
3232
*/
3333
toolChoice?: Humanloop.AgentsCallStreamRequestToolChoice;
34-
/** Details of your Agent. A new Agent version will be created if the provided details are new. */
35-
agent?: Humanloop.AgentKernelRequest;
34+
/**
35+
* The Agent configuration to use. Two formats are supported:
36+
* - An object representing the details of the Agent configuration
37+
* - A string representing the raw contents of a .agent file
38+
*
39+
* A new Agent version will be created if the provided details do not match any existing version.
40+
*/
41+
agent?: Humanloop.AgentsCallStreamRequestAgent;
3642
/** The inputs passed to the prompt template. */
3743
inputs?: Record<string, unknown>;
3844
/** Identifies where the model was called from. */

src/api/resources/agents/client/requests/AgentsContinueRequest.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/api/resources/agents/client/requests/AgentsContinueStreamRequest.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

src/api/resources/agents/client/requests/ListAgentsGetRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ListAgentsGetRequest {
3030
/**
3131
* Field to sort Agents by
3232
*/
33-
sortBy?: Humanloop.ProjectSortBy;
33+
sortBy?: Humanloop.FileSortBy;
3434
/**
3535
* Direction to sort by.
3636
*/

0 commit comments

Comments
 (0)