Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions docs/docs/modules/agents/tools/hashgraph-online.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
sidebar_position: 4
---

# Hashgraph Online Universal Agent IDs

If you are building decentralized AI agents or looking to interact with agents anchored to the Hedera Hashgraph network, you can use the official `standards-sdk-go` adapter.

To resolve **Universal Agent IDs** (HCS-14) on the Hedera Consensus Service, use the official tool module:

```bash
go get github.com/hashgraph-online/standards-sdk-go/adapters/langchaingo
```

### Usage

This adapter provides tools like `UAIDResolverTool` that you can directly supply to any LangChainGo agent.

```go
package main

import (
"github.com/tmc/langchaingo/tools"
hol_langchaingo "github.com/hashgraph-online/standards-sdk-go/adapters/langchaingo"
)

// Initialize the UAID resolving tool
// The AI Agent can now automatically lookup any identity when it encounters a UAID.
uaidTool := hol_langchaingo.NewUAIDResolverTool(nil)

agentTools := []tools.Tool{uaidTool}
// ... initialize your executor with these tools
```

For full setup intructions and more features, refer to the [standards-sdk-go LangChainGo Documentation](https://github.com/hashgraph-online/standards-sdk-go/tree/main/adapters/langchaingo).
Loading