This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 4bbb512  minor refactor
4bbb512 is described below

commit 4bbb5124c76799de089b631393ca7a27887c4209
Author: Paul King <[email protected]>
AuthorDate: Sat Nov 15 21:00:39 2025 +1000

    minor refactor
---
 site/src/site/blog/groovy-ai.adoc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/site/src/site/blog/groovy-ai.adoc 
b/site/src/site/blog/groovy-ai.adoc
index 34fc570..364898f 100644
--- a/site/src/site/blog/groovy-ai.adoc
+++ b/site/src/site/blog/groovy-ai.adoc
@@ -359,6 +359,15 @@ We switched to the `qwen3:8b` model. It is slightly larger 
to download but does
 a more reliable job calling tools correctly. The tools are annotation with 
`@Tools`
 and will be automatically found.
 
+The `getWeather` tool has return type `Weather` which is another domain object:
+
+[source,groovy]
+----
+@ToString(includePackage = false)
+record Weather(String forecast, int minTemp, int maxTemp) {
+}
+----
+
 The output might look something like:
 
 ----

Reply via email to