griptape icon indicating copy to clipboard operation
griptape copied to clipboard

Automatically fill optional tool activity schema defaults if no values is provided

Open vasinov opened this issue 2 years ago • 1 comments

Tool activities can use schema.Optional fields with defaults set by the tool creator. Today, tool creators have to manually check for the value passed by the LLM and then manually fill in the default in the activity implementation.

I propose adding automatic activity default propagation in ActionSubtask in addition to the already implemented activity input validation.

vasinov avatar Oct 01 '23 21:10 vasinov

FYI I started this work but it's non-trivial to extract default values from a schema.Schema instance. https://github.com/griptape-ai/griptape/issues/1499 may help here since we can at least hide the uglyness in a Driver specific to schema.

collindutter avatar Jan 06 '25 17:01 collindutter