Skip to content

When calling actions, Agent Script doesn't support expressions in string parameters #30

@pozil

Description

@pozil

Summary

When calling actions, Agent Script doesn't resolve expressions in string input parameters.

For example, in this action:

run @actions.log_event
  with event_type="reasoning_started"
  with event_data="Turn: {!@variables.turn_count}"

expressions are not evaluated and this produces the following event_data value:

Turn: {!@variables.turn_count}

This affects at least the AfterReasoning recipe.

Salesforce Org Type

Scratch Org

Steps To Reproduce

  1. Run the test instructions for AfterReasoning.
  2. Open the Agent Log Events tab and look at the Event Data field values.

Current Behavior

The expressions aren't evaluated in the log Event Data field and produce things like:

Turn: {!state.turn_count}

Expected Behavior

Expressions should be evaluated as in

Turn: 1

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions