@okcashpro/okai v0.1.7-alpha.1 / IBrowserService
Interface: IBrowserService
Extends
Accessors
serviceType
Get Signature
get serviceType():
ServiceType
Returns
Inherited from
Defined in
packages/core/src/types.ts:1016
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
Defined in
packages/core/src/types.ts:1021
closeBrowser()
closeBrowser():
Promise
<void
>
Returns
Promise
<void
>
Defined in
packages/core/src/types.ts:1157
getPageContent()
getPageContent(
url
,runtime
):Promise
<object
>
Parameters
• url: string
• runtime: IAgentRuntime
Returns
Promise
<object
>
title
title:
string
description
description:
string
bodyContent
bodyContent:
string