mirror of
https://github.com/d0zingcat/solana-agent-kit.git
synced 2026-06-04 23:26:50 +00:00
adapting langchain to use actions
This commit is contained in:
@@ -37,10 +37,8 @@ const pythFetchPriceAction: Action = {
|
||||
}),
|
||||
handler: async (_agent: SolanaAgentKit, input: Record<string, any>) => {
|
||||
try {
|
||||
const priceFeedId = input.priceFeedId as string;
|
||||
|
||||
const priceFeedId = input.tokenId as string;
|
||||
const priceStr = await pythFetchPrice(priceFeedId);
|
||||
|
||||
return {
|
||||
status: "success",
|
||||
price: priceStr,
|
||||
|
||||
Reference in New Issue
Block a user