-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsteps.ts
38 lines (34 loc) · 953 Bytes
/
steps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../resource';
import * as Core from '../../core';
import * as AgentsAPI from './agents';
export class Steps extends APIResource {
/**
* Retrieve an agent step by its ID.
*/
retrieve(
agentId: string,
sessionId: string,
turnId: string,
stepId: string,
options?: Core.RequestOptions,
): Core.APIPromise<StepRetrieveResponse> {
return this._client.get(
`/v1/agents/${agentId}/session/${sessionId}/turn/${turnId}/step/${stepId}`,
options,
);
}
}
export interface StepRetrieveResponse {
/**
* An inference step in an agent turn.
*/
step:
| AgentsAPI.InferenceStep
| AgentsAPI.ToolExecutionStep
| AgentsAPI.ShieldCallStep
| AgentsAPI.MemoryRetrievalStep;
}
export declare namespace Steps {
export { type StepRetrieveResponse as StepRetrieveResponse };
}