Skip to content

Access agent state inside an agent function #1107

Answered by Robadob
daniele-baccega asked this question in Q&A
Discussion options

You must be logged in to vote

Not currently.

It should be relatively easy for us to add though, we'd just need to decide a suitable API. Agent state being a string, we'd want to avoid returning a char* that needs to be compared in device code as this would be unintuitive for users (e.g. they might start comparing pointers).

I'll create a new issue, and may be able to address it next week after it's been discussed with the team on Friday.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by daniele-baccega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants