Closed Cali0707 closed 3 months ago
This PR adds a new tool which is able to get the current time in UTC in RFC3339 format.
To add the tool, we:
func create -l go -t cloudevents
responseid
current.time
func subscribe -f type=current.time -s chat-broker
After these changes, the LLM is able to reply to requests for the current time:
This PR adds a new tool which is able to get the current time in UTC in RFC3339 format.
To add the tool, we:
func create -l go -t cloudevents
and added code to handle setting theresponseid
, as well as returning the current timecurrent.time
eventtype withfunc subscribe -f type=current.time -s chat-broker
current.time
eventsAfter these changes, the LLM is able to reply to requests for the current time: