@blazingagents/sdk 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,10 +22,6 @@ export type BlazingAgentsDirectChatTransportOptions = {
22
22
  export declare class BlazingAgentsDirectChatTransport<UI_MESSAGE extends UIMessage = UIMessage> extends DefaultChatTransport<UI_MESSAGE> {
23
23
  #private;
24
24
  constructor(options: BlazingAgentsDirectChatTransportOptions);
25
- joinInputTurn(input: {
26
- turnId: string;
27
- abortSignal?: AbortSignal;
28
- }): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>>>;
29
25
  runInputs(input?: {
30
26
  abortSignal?: AbortSignal;
31
27
  }): Promise<ReadableStream<import("ai").UIMessageChunk<unknown, import("ai").UIDataTypes>>>;
@@ -13,19 +13,6 @@ export class BlazingAgentsDirectChatTransport extends DefaultChatTransport {
13
13
  ? undefined
14
14
  : sessionIdSchema.parse(options.sessionId);
15
15
  }
16
- async joinInputTurn(input) {
17
- if (this.#sessionId === undefined) {
18
- throw new Error("Input Turn attachment requires an existing Session.");
19
- }
20
- const client = await this.#options.getClient();
21
- const result = await client.sessions.joinInputTurn({
22
- ...input,
23
- agentId: this.#options.agentId,
24
- sessionId: this.#sessionId,
25
- functions: this.#options.functions,
26
- });
27
- return this.processResponseStream(result.toStream());
28
- }
29
16
  async runInputs(input = {}) {
30
17
  if (this.#sessionId === undefined) {
31
18
  throw new Error("Input batch admission requires an existing Session.");
@@ -12,12 +12,6 @@ import { requestJson, requestStream } from "../http.js";
12
12
  */
13
13
  export function createSessionsResource(config) {
14
14
  return {
15
- async joinInputTurn({ agentId, sessionId, turnId, functions, abortSignal, }) {
16
- const response = await requestStream(config, `/v1/agents/${agentIdSchema.parse(agentId)}/sessions/${sessionIdSchema.parse(sessionId)}/input-turns/${turnIdSchema.parse(turnId)}`, { signal: abortSignal });
17
- return buildTerminalStreamResult(response, "input Turn", (body) => functions
18
- ? dispatchChatFunctions(config, { agentId, sessionId, functions, abortSignal }, body)
19
- : stripFunctionEvents(body));
20
- },
21
15
  async runInputs({ agentId, sessionId, functions, abortSignal }) {
22
16
  const response = await requestStream(config, `/v1/agents/${agentIdSchema.parse(agentId)}/sessions/${sessionIdSchema.parse(sessionId)}/inputs/run`, {
23
17
  method: "POST",
package/dist/types.d.ts CHANGED
@@ -419,13 +419,6 @@ export interface SessionsResource {
419
419
  agentId: string;
420
420
  sessionId: string;
421
421
  } & SessionInputsQuery & ResourceRequestOptions): Promise<SessionInputsResponse>;
422
- /** Replays an admitted input Turn. Supplying functions opts into executor claims. */
423
- joinInputTurn(input: {
424
- agentId: string;
425
- sessionId: string;
426
- turnId: string;
427
- functions?: ChatFunctions;
428
- } & ResourceRequestOptions): Promise<TerminalStreamResult>;
429
422
  joinToolApprovalContinuation(input: {
430
423
  agentId: string;
431
424
  sessionId: string;
@@ -454,7 +447,7 @@ export interface SessionsResource {
454
447
  agentId: string;
455
448
  sessionId: string;
456
449
  } & ResourceRequestOptions): Promise<ResumeSessionInputsResponse>;
457
- /** Admits the pending batch without resubmitting its messages. */
450
+ /** Runs the pending batch and streams its output without resubmitting messages. */
458
451
  runInputs(input: {
459
452
  agentId: string;
460
453
  sessionId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazingagents/sdk",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "TypeScript SDK for the Blazing Agents API",
5
5
  "homepage": "https://docs.blazingagents.com",
6
6
  "bugs": {