MCPcopy Create free account
hub / github.com/CopilotKit/OpenTag / senderContext

Function senderContext

app/sender-context.ts:12–22  ·  view source on GitHub ↗
(
  user: PlatformUser | undefined,
  platform: string,
)

Source from the content-addressed store, hash-verified

10export function senderContext(
11 actor: ProviderActor | undefined,
12 platform: string,
13): ContextEntry[] {
14 if (!actor?.id) return [];
15 const label = `${actor.name ?? actor.id}${actor.email ? ` <${actor.email}>` : ""} (${platform} id ${actor.id})`;
16 return [{ description: `Requesting ${platform} user`, value: label }];
17}

Callers 4

mainFunction · 0.85
fileIssueSubmitFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected