Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split 'resolve' into multiple tools and add more descriptive information for LLMs #19

Merged
merged 4 commits into from
Apr 1, 2025

Conversation

cjber
Copy link
Contributor

@cjber cjber commented Mar 28, 2025

Primarily splits the 'resolve' tool which helps LLMs choose. Also adds more descriptive info, and rename some parameters to help LLMs understand what they should be doing.

I do think that the get_all_events tool confuses LLMs a bit, as it's quite complex with a lot of different parameters and terms that an LLM wouldn't be familiar with. There's some overlap with resolve as well, which is worth thinking about.

Ref NEB-160

Copy link

linear bot commented Mar 28, 2025

@@ -27,3 +28,18 @@ def normalize_chain_id(
return [extract_digits(c) for c in in_value]

return extract_digits(in_value)


def decode_abi_data(encoded_data: str) -> bytes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some insight endpoint supports ?decode=true which performs the decode automatically in the response. it doesn't look like it's added to the resolve endpoint yet. let's work with the insight team to add support for it. we should rely on the insight api to decode it.

then, in the clean function, we can check if decoded exists and data exists, then we can pop data. if decoded doesn't exists for whatever reasons, we can leave the data and let LLM perform best-guess decode

@cjber cjber merged commit 60ed453 into main Apr 1, 2025
2 checks passed
@cjber cjber deleted the cb/split_resolve branch April 1, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants