AgentsDataMap

purpose

View as MarkdownOpen in Claude

Set the function description shown to the AI when deciding which tool to call. description() is an alias for this method.

Parameters

description
strRequired

Human-readable description of what this function does.

Returns

DataMap — Self for method chaining.

Example

from signalwire import DataMap
weather = DataMap("get_weather")
weather.purpose("Get the current weather for a given city")