Skip to content

AIDK API Reference / aidk-server / ExecutionRepository

Interface: ExecutionRepository ​

Defined in: packages/server/src/types.ts:100

Methods ​

create() ​

ts
create(data: Omit<ExecutionEntity, "startedAt"> & {
  startedAt?: Date;
}): Promise<ExecutionEntity>;

Defined in: packages/server/src/types.ts:101

Parameters ​

ParameterType
dataOmit<ExecutionEntity, "startedAt"> & { startedAt?: Date; }

Returns ​

Promise<ExecutionEntity>


findAll() ​

ts
findAll(params?: {
  limit?: number;
  offset?: number;
  tenant_id?: string;
  thread_id?: string;
  user_id?: string;
}): Promise<ExecutionEntity[]>;

Defined in: packages/server/src/types.ts:107

Parameters ​

ParameterType
params?{ limit?: number; offset?: number; tenant_id?: string; thread_id?: string; user_id?: string; }
params.limit?number
params.offset?number
params.tenant_id?string
params.thread_id?string
params.user_id?string

Returns ​

Promise<ExecutionEntity[]>


findById() ​

ts
findById(id: string): Promise<ExecutionEntity | null>;

Defined in: packages/server/src/types.ts:103

Parameters ​

ParameterType
idstring

Returns ​

Promise<ExecutionEntity | null>


findByRootId() ​

ts
findByRootId(rootId: string): Promise<ExecutionEntity[]>;

Defined in: packages/server/src/types.ts:106

Parameters ​

ParameterType
rootIdstring

Returns ​

Promise<ExecutionEntity[]>


findByThreadId() ​

ts
findByThreadId(threadId: string, limit?: number): Promise<ExecutionEntity[]>;

Defined in: packages/server/src/types.ts:104

Parameters ​

ParameterType
threadIdstring
limit?number

Returns ​

Promise<ExecutionEntity[]>


findByUserId() ​

ts
findByUserId(userId: string, limit?: number): Promise<ExecutionEntity[]>;

Defined in: packages/server/src/types.ts:105

Parameters ​

ParameterType
userIdstring
limit?number

Returns ​

Promise<ExecutionEntity[]>


update() ​

ts
update(id: string, updates: Partial<ExecutionEntity>): Promise<ExecutionEntity | null>;

Defined in: packages/server/src/types.ts:102

Parameters ​

ParameterType
idstring
updatesPartial<ExecutionEntity>

Returns ​

Promise<ExecutionEntity | null>

Released under the MIT License.