Skip to content

Latest commit

 

History

History
107 lines (54 loc) · 1.94 KB

IAwsS3Service.md

File metadata and controls

107 lines (54 loc) · 1.94 KB

@elizaos/core v0.1.7-alpha.1 / IAwsS3Service

Interface: IAwsS3Service

Extends

Accessors

serviceType

Get Signature

get serviceType(): ServiceType

Returns

ServiceType

Inherited from

Service.serviceType

Defined in

packages/core/src/types.ts:1036

Methods

initialize()

abstract initialize(runtime): Promise<void>

Add abstract initialize method that must be implemented by derived classes

Parameters

runtime: IAgentRuntime

Returns

Promise<void>

Inherited from

Service.initialize

Defined in

packages/core/src/types.ts:1041


uploadFile()

uploadFile(imagePath, subDirectory, useSignedUrl, expiresIn): Promise<object>

Parameters

imagePath: string

subDirectory: string

useSignedUrl: boolean

expiresIn: number

Returns

Promise<object>

success

success: boolean

url?

optional url: string

error?

optional error: string

Defined in

packages/core/src/types.ts:1195


generateSignedUrl()

generateSignedUrl(fileName, expiresIn): Promise<string>

Parameters

fileName: string

expiresIn: number

Returns

Promise<string>

Defined in

packages/core/src/types.ts:1205