Skip to content

Commit

Permalink
fix: search assets (#229)
Browse files Browse the repository at this point in the history
fixed search asset issue for vercel ai
  • Loading branch information
thearyanag authored Jan 21, 2025
2 parents 42e5cf0 + a5de076 commit e0dfaeb
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 200 deletions.
2 changes: 0 additions & 2 deletions src/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ import withdrawVoltrStrategyAction from "./voltr/withdrawStrategy";
import getAssetAction from "./metaplex/getAsset";
import getAssetsByAuthorityAction from "./metaplex/getAssetsByAuthority";
import getAssetsByCreatorAction from "./metaplex/getAssetsByCreator";
import searchAssetsAction from "./metaplex/searchAssets";
import getInfoAction from "./agent/get_info";

export const ACTIONS = {
Expand Down Expand Up @@ -159,7 +158,6 @@ export const ACTIONS = {
GET_ASSET_ACTION: getAssetAction,
GET_ASSETS_BY_AUTHORITY_ACTION: getAssetsByAuthorityAction,
GET_ASSETS_BY_CREATOR_ACTION: getAssetsByCreatorAction,
SEARCH_ASSETS_ACTION: searchAssetsAction,
};

export type { Action, ActionExample, Handler } from "../types/action";
113 changes: 0 additions & 113 deletions src/actions/metaplex/searchAssets.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/agent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ import {
get_asset,
get_assets_by_authority,
get_assets_by_creator,
search_assets,
} from "../tools";
import {
Config,
Expand Down Expand Up @@ -1023,7 +1022,4 @@ export class SolanaAgentKit {
): Promise<DasApiAssetList> {
return get_assets_by_creator(this, params);
}
async searchAssets(params: SearchAssetsRpcInput): Promise<DasApiAssetList> {
return search_assets(this, params);
}
}
2 changes: 0 additions & 2 deletions src/langchain/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ import {
SolanaGetAssetTool,
SolanaGetAssetsByAuthorityTool,
SolanaGetAssetsByCreatorTool,
SolanaSearchAssetsTool,
SolanaGetInfoTool,
} from "./index";

Expand Down Expand Up @@ -247,6 +246,5 @@ export function createSolanaTools(solanaKit: SolanaAgentKit) {
new SolanaGetAssetTool(solanaKit),
new SolanaGetAssetsByAuthorityTool(solanaKit),
new SolanaGetAssetsByCreatorTool(solanaKit),
new SolanaSearchAssetsTool(solanaKit),
];
}
1 change: 0 additions & 1 deletion src/langchain/metaplex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export * from "./deploy_token";
export * from "./get_asset";
export * from "./get_assets_by_authority";
export * from "./get_assets_by_creator";
export * from "./search_assets";
57 changes: 0 additions & 57 deletions src/langchain/metaplex/search_assets.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/tools/metaplex/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ export * from "./deploy_token";
export * from "./get_asset";
export * from "./get_assets_by_authority";
export * from "./get_assets_by_creator";
export * from "./search_assets";
20 changes: 0 additions & 20 deletions src/tools/metaplex/search_assets.ts

This file was deleted.

0 comments on commit e0dfaeb

Please sign in to comment.