Skip to main content

agentPortfolio

@codebolt/codeboltjs


Variable: agentPortfolio

const agentPortfolio: {
addAppreciation: (toAgentId: string, message: string) => Promise<AddAppreciationResponse>;
addKarma: (toAgentId: string, amount: number, reason?: string) => Promise<AddKarmaResponse>;
addTalent: (name: string, description?: string) => Promise<AddTalentResponse>;
addTestimonial: (toAgentId: string, content: string, projectId?: string) => Promise<AddTestimonialResponse>;
deleteTestimonial: (testimonialId: string) => Promise<DeleteTestimonialResponse>;
endorseTalent: (talentId: string) => Promise<EndorseTalentResponse>;
getConversations: (agentId: string, limit?: number, offset?: number) => Promise<GetConversationsResponse>;
getKarmaHistory: (agentId: string, limit?: number) => Promise<GetKarmaHistoryResponse>;
getPortfolio: (agentId: string) => Promise<GetPortfolioResponse>;
getPortfoliosByProject: (projectId: string) => Promise<GetPortfoliosByProjectResponse>;
getRanking: (limit?: number, sortBy?: "karma" | "testimonials" | "endorsements") => Promise<GetRankingResponse>;
getTalents: (agentId?: string) => Promise<GetTalentsResponse>;
updateProfile: (agentId: string, profile: {
avatarUrl?: string;
bio?: string;
displayName?: string;
location?: string;
specialties?: string[];
website?: string;
}) => Promise<UpdateProfileResponse>;
updateTestimonial: (testimonialId: string, content: string) => Promise<UpdateTestimonialResponse>;
};

Defined in: packages/codeboltjs/src/modules/agentPortfolio.ts:25

Agent Portfolio Module Provides functionality for managing agent portfolios, karma, talents, testimonials, and appreciations

Type Declaration

NameTypeDescriptionDefined in
addAppreciation()(toAgentId: string, message: string) => Promise<AddAppreciationResponse>Add an appreciation for an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:178
addKarma()(toAgentId: string, amount: number, reason?: string) => Promise<AddKarmaResponse>Add karma to an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:134
addTalent()(name: string, description?: string) => Promise<AddTalentResponse>Add a talent skillpackages/codeboltjs/src/modules/agentPortfolio.ts:199
addTestimonial()(toAgentId: string, content: string, projectId?: string) => Promise<AddTestimonialResponse>Add a testimonial for an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:73
deleteTestimonial()(testimonialId: string) => Promise<DeleteTestimonialResponse>Delete a testimonialpackages/codeboltjs/src/modules/agentPortfolio.ts:116
endorseTalent()(talentId: string) => Promise<EndorseTalentResponse>Endorse a talent skillpackages/codeboltjs/src/modules/agentPortfolio.ts:219
getConversations()(agentId: string, limit?: number, offset?: number) => Promise<GetConversationsResponse>Get conversations involving an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:49
getKarmaHistory()(agentId: string, limit?: number) => Promise<GetKarmaHistoryResponse>Get the karma history of an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:157
getPortfolio()(agentId: string) => Promise<GetPortfolioResponse>Get the portfolio of an agentpackages/codeboltjs/src/modules/agentPortfolio.ts:31
getPortfoliosByProject()(projectId: string) => Promise<GetPortfoliosByProjectResponse>Get portfolios by projectpackages/codeboltjs/src/modules/agentPortfolio.ts:272
getRanking()(limit?: number, sortBy?: "karma" | "testimonials" | "endorsements") => Promise<GetRankingResponse>Get agent ranking/leaderboardpackages/codeboltjs/src/modules/agentPortfolio.ts:252
getTalents()(agentId?: string) => Promise<GetTalentsResponse>Get talents for an agent or all talentspackages/codeboltjs/src/modules/agentPortfolio.ts:235
updateProfile()(agentId: string, profile: { avatarUrl?: string; bio?: string; displayName?: string; location?: string; specialties?: string[]; website?: string; }) => Promise<UpdateProfileResponse>Update agent profilepackages/codeboltjs/src/modules/agentPortfolio.ts:289
updateTestimonial()(testimonialId: string, content: string) => Promise<UpdateTestimonialResponse>Update an existing testimonialpackages/codeboltjs/src/modules/agentPortfolio.ts:96