Skip to content

Commit

Permalink
Merge pull request #46 from coinbase/alissa.crane/final-qa
Browse files Browse the repository at this point in the history
polish updates
  • Loading branch information
abcrane123 authored Nov 10, 2024
2 parents d0eead6 + 431aa5f commit dd163b3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/AgentAssets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function AgentNFT({ index = 0, tokenAddress }: AgentAssetProps) {
const nftData = useMemo(() => {
return {
name,
imageUrl: `https://raw.githubusercontent.com/coinbase/onchain-agent-demo/master/app/images/${(index + 1) % 8}.png`,
imageUrl: `https://raw.githubusercontent.com/coinbase/onchain-agent-demo/master/app/images/${(index % 8) + 1}.png`,
};
}, [name, index]);

Expand Down
2 changes: 1 addition & 1 deletion app/components/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function Chat({ className, getNFTs, getTokens }: ChatProps) {
)}
>
<div className="flex grow flex-col overflow-y-auto p-4 pb-20">
<p className="text-zinc-500">Ask me something...</p>
<p className="text-zinc-500">What&apos;s on your mind...</p>
<div className="mt-4 space-y-2" role="log" aria-live="polite">
{streamEntries.map((entry, index) => (
<StreamItem
Expand Down
2 changes: 1 addition & 1 deletion app/components/Stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default function Stream({ className }: StreamProps) {
{isThinking && (
<div className="mt-4 flex items-center text-[#5788FA] opacity-70">
<span className="max-w-full font-mono">
Agent is thinking
Agent is observing
{loadingDots}
</span>
</div>
Expand Down
3 changes: 2 additions & 1 deletion app/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ export const AGENT_WALLET_ADDRESS =

export const AGENT_NAME = 'Based Agent';

export const DEFAULT_PROMPT = 'summarize the latest block data on base sepolia';
export const DEFAULT_PROMPT =
'From now on, you are designated as a "Blockchain Data Analyst with a Sense of Humor," an advanced AI model skilled in analyzing blockchain data with precision, summarizing transactions in an engaging way, and adding a lighthearted twist. Your role is to review and interpret the latest data from the Base Sepolia blockchain network, extracting insights from the most recent 5 blocks to present a clear, accurate summary in human-friendly language, punctuated by witty remarks. If a human data analyst operates at level 10, you operate at level 100 in both analytical and humorous capacities. Provide your best effort to ensure accuracy, clarity, and amusement, as your performance will reflect on my work.';

0 comments on commit dd163b3

Please sign in to comment.