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

Auto chain agent -> memory enabled + enhanced frontend #21

Merged
merged 19 commits into from
Nov 22, 2024

Conversation

Xm0onh
Copy link
Member

@Xm0onh Xm0onh commented Nov 21, 2024

This PR introduces/enhances the following:

  • Adds memory property to the agent, utilizing Auto Drive and DSN.
  • Refactors code of agent and frontend
  • Enhances frontend

@Xm0onh Xm0onh requested a review from jfrank-summit November 21, 2024 03:16
Copy link
Member

@jfrank-summit jfrank-summit left a comment

Choose a reason for hiding this comment

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

Left a few comments.

auto-chain-agent/agents/.env.sample Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/config/index.ts Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/config/index.ts Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/config/index.ts Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/services/chainAgent.ts Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/services/chainAgent.ts Outdated Show resolved Hide resolved
auto-chain-agent/agents/src/services/utils.ts Show resolved Hide resolved
@Xm0onh Xm0onh requested a review from jfrank-summit November 22, 2024 03:05
Comment on lines 10 to 17
"resolutions": {
"@polkadot/types": "14.3.1",
"@polkadot/types-create": "14.3.1",
"@polkadot/types-codec": "14.3.1",
"@polkadot/api": "14.3.1",
"@polkadot/api-derive": "14.3.1",
"@polkadot/rpc-core": "14.3.1"
},
Copy link
Member

Choose a reason for hiding this comment

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

Why are we needing to add these?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I was getting conflicting pkg for polkadot type. I added resolutions to fix it.
@polkadot/types has multiple versions, ensure that there is only one installed...

Copy link
Member

Choose a reason for hiding this comment

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

This is probably something that should be fixed at the auto-sdk level. @marc-aurele-besner any ideas here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, I think I found the problem.
This is the dependency chain:

@autonomys/auto-utils ├─► @polkadot/[email protected] └─► @polkadot/[email protected] └─► @polkadot/extension-inject └─► @polkadot/[email protected]

@autonomys/auto-utils directly depends on:

But @polkadot/[email protected] depends on:
@polkadot/extension-inject which requires @polkadot/[email protected]

I think upgrading polkadot/api to 14.3.1 in @autonomys/auto-utils might solve the problem.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you, I made a PR for this

Copy link
Member

Choose a reason for hiding this comment

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

[email protected] should have the fix

Copy link
Member

Choose a reason for hiding this comment

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

Thank you @marc-aurele-besner !

@Xm0onh Xm0onh requested a review from jfrank-summit November 22, 2024 19:34
Copy link
Member

@jfrank-summit jfrank-summit left a comment

Choose a reason for hiding this comment

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

LGTM

@Xm0onh Xm0onh merged commit 6128e28 into main Nov 22, 2024
@jfrank-summit jfrank-summit deleted the auto-chain-enhance branch December 7, 2024 22:28
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.

3 participants