Skip to main content

Interface: ActivityAsToolOptions

googleAdkAgentsWorkflow.ActivityAsToolOptions

Options for activityAsTool.

Properties

activity

Optional activity: ActivityOptions

Per-call Activity configuration (timeouts, retry, task queue).


description

description: string

Description advertised to the model.


name

name: string

The registered Activity name to dispatch. Must match an @activity-style function registered on the worker (e.g. via the worker's activities).


parameters

Optional parameters: Schema

Parameter schema advertised to the model. The model's tool-call arguments are passed as the Activity's single argument. Defaults to an empty object schema.