Skip to content

Commit c8151f8

Browse files
author
Andrei Bratu
authored
Release 0.8.21-beta2 (#26)
* Updated doc-strings to match the changes made in observability, per [16.05 changelog](https://humanloop.com/docs/v5/changelog/2025/05#improved-observability-for-traces)
1 parent 303fe8e commit c8151f8

File tree

99 files changed

+1256
-2329
lines changed

Some content is hidden

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

99 files changed

+1256
-2329
lines changed

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: 1 addition & 1 deletion
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-beta2",
44
"private": false,
55
"repository": "https://github.com/humanloop/humanloop-node",
66
"main": "./index.js",

reference.md

Lines changed: 2 additions & 5 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

@@ -4794,9 +4794,6 @@ Log to a Flow.
47944794
You can use query parameters `version_id`, or `environment`, to target
47954795
an existing version of the Flow. Otherwise, the default deployed version will be chosen.
47964796

4797-
If you create the Flow Log with a `log_status` of `incomplete`, you should later update it to `complete`
4798-
in order to trigger Evaluators.
4799-
48004797
</dd>
48014798
</dl>
48024799
</dd>
@@ -7313,7 +7310,7 @@ await client.agents.updateMonitoring("ag_1234567890", {
73137310
</dl>
73147311
</details>
73157312

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

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: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ 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+
* A new Agent version will be created if the provided details do not match any existing version.
97+
*/
98+
agent?: Humanloop.AgentLogRequestAgent;
9499
/** When the logged event started. */
95100
startTime?: Date;
96101
/** When the logged event ended. */
@@ -115,8 +120,6 @@ export interface AgentLogRequest {
115120
source?: string;
116121
/** Any additional metadata to record. */
117122
metadata?: Record<string, unknown>;
118-
/** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */
119-
logStatus?: Humanloop.LogStatus;
120123
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
121124
sourceDatapointId?: string;
122125
/** The ID of the parent Log to nest this Log under in a Trace. */

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ 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+
* A new Agent version will be created if the provided details do not match any existing version.
45+
*/
46+
agent?: Humanloop.AgentsCallRequestAgent;
4247
/** The inputs passed to the prompt template. */
4348
inputs?: Record<string, unknown>;
4449
/** Identifies where the model was called from. */
@@ -49,8 +54,6 @@ export interface AgentsCallRequest {
4954
startTime?: Date;
5055
/** When the logged event ended. */
5156
endTime?: Date;
52-
/** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */
53-
logStatus?: Humanloop.LogStatus;
5457
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
5558
sourceDatapointId?: string;
5659
/** The ID of the parent Log to nest this Log under in a Trace. */

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ 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+
* A new Agent version will be created if the provided details do not match any existing version.
39+
*/
40+
agent?: Humanloop.AgentsCallStreamRequestAgent;
3641
/** The inputs passed to the prompt template. */
3742
inputs?: Record<string, unknown>;
3843
/** Identifies where the model was called from. */
@@ -43,8 +48,6 @@ export interface AgentsCallStreamRequest {
4348
startTime?: Date;
4449
/** When the logged event ended. */
4550
endTime?: Date;
46-
/** Status of a Log. Set to `incomplete` if you intend to update and eventually complete the Log and want the File's monitoring Evaluators to wait until you mark it as `complete`. If log_status is not provided, observability will pick up the Log as soon as possible. Updating this from specified to unspecified is undefined behavior. */
47-
logStatus?: Humanloop.LogStatus;
4851
/** Unique identifier for the Datapoint that this Log is derived from. This can be used by Humanloop to associate Logs to Evaluations. If provided, Humanloop will automatically associate this Log to Evaluations that require a Log for this Datapoint-Version pair. */
4952
sourceDatapointId?: string;
5053
/** The ID of the parent Log to nest this Log under in a Trace. */

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)