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

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