Skip to content

Commit

Permalink
Moved to AI folder, standard user account.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabehamilton committed Apr 11, 2024
1 parent a76bb78 commit c761e29
Show file tree
Hide file tree
Showing 21 changed files with 45 additions and 35 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy-dev-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
name: Deploy widgets to agiguild-dev.testnet
env:
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.AGI_GUILD_TESTNET_DEV_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.AGI_GUILD_TESTNET_DEV_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.AGI_GUILD_TESTNET_DEV_ACCOUNT_PRIVATE_KEY }}
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.NEAR_SOCIAL_TESTNET_DEV_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.NEAR_SOCIAL_TESTNET_DEV_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.NEAR_SOCIAL_TESTNET_DEV_ACCOUNT_PRIVATE_KEY }}

steps:
- name: Checkout repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-prod-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
name: Deploy widgets to agiguild.near (mainnet)
env:
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.AGI_GUILD_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.AGI_GUILD_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.AGI_GUILD_ACCOUNT_PRIVATE_KEY }}
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.NEAR_SOCIAL_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY }}

steps:
- name: Checkout repository
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy-prod-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ubuntu-latest
name: Deploy widgets to agiguild.testnet
env:
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.AGI_GUILD_TESTNET_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.AGI_GUILD_TESTNET_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.AGI_GUILD_TESTNET_ACCOUNT_PRIVATE_KEY }}
NEAR_SOCIAL_ACCOUNT_ID: ${{ vars.NEAR_SOCIAL_TESTNET_ACCOUNT_ID }}
NEAR_SOCIAL_ACCOUNT_PUBLIC_KEY: ${{ vars.NEAR_SOCIAL_TESTNET_ACCOUNT_PUBLIC_KEY }}
NEAR_SOCIAL_ACCOUNT_PRIVATE_KEY: ${{ secrets.NEAR_SOCIAL_TESTNET_ACCOUNT_PRIVATE_KEY }}

steps:
- name: Checkout repository
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@ These may be Near specific, multi-chain using Near chain abstraction, or impleme
Projects may be spun out into their own repositories as they mature.

## Areas
* ./nexus/components - AGI Guild resource Nexus, BOS component implementation
* ./nexus/components - NEAR AI resource Nexus, React on Chain component implementation
* ./nexus/framework - Framework of NEAR Protocol Capabilities for use by AI Agents
* [./nexus/framework/trust](nexus/framework/trust) - Trust and Integrity Framework
* [./nexus/examples](nexus/examples) - Example agents that use Agent Framework capabilities


* inference - Provable Decentralized Inference

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const AgentCard = ({ item, editFunction }) => {
const { accountId, name, displayName, prompt, logoUrl } = item;
const agentComponent = item.component
? item.component
: `${REPL_AGIGUILD}/widget/Agent.AgentChat`;
: `${REPL_ACCOUNT}/widget/Agent.AgentChat`;
const imageUrl = logoUrl
? logoUrl
: "https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu";
Expand All @@ -74,7 +74,7 @@ const AgentCard = ({ item, editFunction }) => {
params: { src: `${accountId}/agent/${name}` },
});
const detailsLink = href({
widgetSrc: `${REPL_AGIGUILD}/widget/Agent.AgentDetails`,
widgetSrc: `${REPL_ACCOUNT}/widget/Agent.AgentDetails`,
params: {
src: `${accountId}/agent/${name}`,
schemaFile,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const agent = { accountId, name: agentName, ...data };
if (!data) return "Loading...";

const listLink = href({
widgetSrc: `${REPL_AGIGUILD}/widget/Nexus`,
widgetSrc: `${REPL_ACCOUNT}/widget/Nexus`,
});

const [settingsOpen, setSettingsOpen] = useState(false);
Expand Down Expand Up @@ -397,7 +397,7 @@ return (
<div className="row">
<div className="col-5">
<Widget
src="${REPL_AGIGUILD}/widget/Agent.AgentSummary"
src="${REPL_ACCOUNT}/widget/Agent.AgentSummary"
props={{
size: "small",
showTags: true,
Expand Down
10 changes: 10 additions & 0 deletions nexus/components/src/AI/Agent/AgentCustomizer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Fill in all the slots of required info
// fill in your preferences
// connect up your datasources to slots

// verify: safety of api keys
// safety of information: what are LLM calls going to do with my info.

// Inform user:
// see what is being sent to the server
// links to all the data reputation and on-chain integrity: decisions, outcomes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
let { src, tab, schemaFile, namespace } = props;

const summaryComponent = "${REPL_AGIGUILD}/widget/Agent.AgentSummary";
const summaryComponent = "${REPL_ACCOUNT}/widget/Agent.AgentSummary";
const customComponentLabel = (component) => {
if (component === `agiguild.near/widget/Agent.AgentChat`) {
if (component === `near/widget/Agent.AgentChat`) {
return "Chat";
}
return (
Expand All @@ -19,7 +19,7 @@ const customComponentLabel = (component) => {
const additionalTabs = (entity) => {
const agentComponent = entity.component
? entity.component
: `${REPL_AGIGUILD}/widget/Agent.AgentChat`;
: `${REPL_ACCOUNT}/widget/Agent.AgentChat`;

return {
name: customComponentLabel(agentComponent),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ const renderItem = (item, editFunction) => {
delete flatItem.attributes;
return (
<Widget
src="${REPL_AGIGUILD}/widget/Agent.AgentCard"
src="${REPL_ACCOUNT}/widget/Agent.AgentCard"
props={{
item: convertSnakeToPascal(flatItem),
editFunction,
namespace: "near",
entityType: "agent",
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Agent",
schemaFile: "${REPL_ACCOUNT}/widget/Schema.Agent",
}}
/>
);
Expand All @@ -29,7 +29,7 @@ return (
namespace: "near",
entityType: "agent",
title: "Agent",
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Agent",
schemaFile: "${REPL_ACCOUNT}/widget/Schema.Agent",
renderItem,
}}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const { accountId, name, displayName, prompt, logoUrl, tags, component } =

const agentComponent = item.component
? item.component
: `${REPL_AGIGUILD}/widget/Agent.AgentChat`;
: `${REPL_ACCOUNT}/widget/Agent.AgentChat`;
const chatLink = href({
widgetSrc: agentComponent,
params: { src: `${accountId}/agent/${name}` },
Expand Down
4 changes: 4 additions & 0 deletions nexus/components/src/AI/Agent/LangChain.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const src = `
import { OpenAI } from "@langchain/openai";
`;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Wrapper = styled.div`
flex-direction: column;
}
`;
const { schema } = VM.require(`${REPL_AGIGUILD}/widget/Schema.Nexus`);
const { schema } = VM.require(`${REPL_ACCOUNT}/widget/Schema.Nexus`);
if (!schema) {
return <></>;
}
Expand Down Expand Up @@ -56,7 +56,7 @@ const content = {
overview: () => {
return (
<Widget
src="${REPL_AGIGUILD}/widget/Overview"
src="${REPL_ACCOUNT}/widget/Overview"
props={{ handleMenuClick }}
/>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ return (
<Flex $direction="column" $gap="32px">
<div style={{ width: "250px" }}>
<Widget
src="${REPL_AGIGUILD}/widget/HeaderText"
src="${REPL_ACCOUNT}/widget/HeaderText"
props={{ text: "NEAR AI", color: "#01080c" }}
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const renderItem = (item, editFunction) => {
const { accountId, name, displayName, logoUrl } = item;
const itemComponent = item.component
? item.component
: `${REPL_AGIGUILD}/widget/Agent.AgentChat`;
: `${REPL_ACCOUNT}/widget/Agent.AgentChat`;
const imageUrl =
logoUrl ??
"https://ipfs.near.social/ipfs/bafkreibysr2mkwhb4j36h2t7mqwhynqdy4vzjfygfkfg65kuspd2bawauu";
Expand All @@ -43,7 +43,7 @@ const renderItem = (item, editFunction) => {
params: { src: `${accountId}/agent/${name}` },
});
const detailsLink = href({
widgetSrc: `${REPL_AGIGUILD}/widget/Agent.AgentDetails`,
widgetSrc: `${REPL_ACCOUNT}/widget/Agent.AgentDetails`,
params: { src: `${accountId}/agent/${name}` },
});

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const schema = {
namespace: "near",
entityType: "alignmentDataset",
title: "Alignment Datasets: RLHF, DPO",
schemaFile: "${REPL_AGIGUILD}/widget/Schema.AlignmentDataset",
schemaFile: "${REPL_ACCOUNT}/widget/Schema.AlignmentDataset",
}}
/>
),
Expand All @@ -101,7 +101,7 @@ const schema = {
props={{
namespace: "near",
entityType: "modelProvider",
schemaFile: "${REPL_AGIGUILD}/widget/Schema.Provider",
schemaFile: "${REPL_ACCOUNT}/widget/Schema.Provider",
}}
/>
),
Expand All @@ -117,7 +117,7 @@ const schema = {
namespace: "near",
entityType: "modelName",
title: "Standard Model Names",
schemaFile: "${REPL_AGIGUILD}/widget/Schema.ModelName",
schemaFile: "${REPL_ACCOUNT}/widget/Schema.ModelName",
}}
/>
),
Expand Down Expand Up @@ -149,7 +149,7 @@ const schema = {
name: "Agents",
value: "agents",
content: (
<Widget src="${REPL_AGIGUILD}/widget/Agent.AgentEntityConfig" />
<Widget src="${REPL_ACCOUNT}/widget/Agent.AgentEntityConfig" />
),
icon: "ph ph-address-book",
},
Expand Down Expand Up @@ -202,7 +202,7 @@ const schema = {
value: "contracts",
content: (
<Widget
src="${REPL_AGIGUILD}/widget/Entities.Template.GenericEntityConfig"
src="${REPL_ACCOUNT}/widget/Entities.Template.GenericEntityConfig"
props={{
namespace: "near",
entityType: "contractTool",
Expand Down

0 comments on commit c761e29

Please sign in to comment.