Skip to content

Commit 6995a84

Browse files
author
copybara-service
committed
deploy: c4ece1a
1 parent a863b32 commit 6995a84

98 files changed

Lines changed: 1158 additions & 664 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

front_end/core/host/AidaClientTypes.d.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,17 @@ export interface Content {
1919
/** The producer of the content. */
2020
role: Role;
2121
}
22-
export type Part = {
23-
text: string;
24-
} | {
25-
functionCall: AidaFunctionCall;
26-
} | {
22+
export interface FunctionResponsePart {
2723
functionResponse: {
2824
name: string;
2925
response: Record<string, unknown>;
3026
};
27+
}
28+
export type Part = {
29+
text: string;
3130
} | {
31+
functionCall: AidaFunctionCall;
32+
} | FunctionResponsePart | {
3233
/** Inline media bytes. */
3334
inlineData: MediaBlob;
3435
};

front_end/core/host/AidaClientTypes.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/core/host/host.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/core/i18n/locales/generated/collected-ui-strings.d

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

front_end/core/sdk/DOMStorageModel.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export declare class DOMStorage extends Common.ObjectWrapper.ObjectWrapper<DOMSt
99
constructor(model: DOMStorageModel, storageKey: string, isLocalStorage: boolean);
1010
static storageId(storageKey: string, isLocalStorage: boolean): Protocol.DOMStorage.StorageId;
1111
get id(): Protocol.DOMStorage.StorageId;
12-
get storageKey(): string | null;
12+
get storageKey(): string;
1313
get isLocalStorage(): boolean;
1414
getItems(): Promise<Protocol.DOMStorage.Item[] | null>;
1515
setItem(key: string, value: string): void;

front_end/core/sdk/DOMStorageModel.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/core/sdk/sdk.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/models/ai_assistance/AiAgent2.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import * as Host from '../../core/host/host.js';
2-
import { AiAgent, type ContextResponse, type ConversationContext, type RequestOptions } from './agents/AiAgent.js';
2+
import { type AgentOptions, AiAgent, type ContextResponse, type ConversationContext, type RequestOptions } from './agents/AiAgent.js';
33
import type { SkillName } from './skills/Skill.js';
44
export declare class AiAgent2 extends AiAgent<unknown> {
55
#private;
66
readonly preamble = "You are a unified AI assistant in Chrome DevTools. You can learn skills to help the user.";
77
readonly clientFeature = Host.AidaClient.ClientFeature.CHROME_STYLING_AGENT;
88
readonly userTier = "TESTERS";
99
get options(): RequestOptions;
10+
constructor(opts: AgentOptions);
11+
enhanceQuery(query: string): Promise<string>;
1012
handleContextDetails(_select: ConversationContext<unknown> | null): AsyncGenerator<ContextResponse, void, void>;
1113
learnSkill(names: SkillName[]): Promise<string>;
1214
get activeSkills(): Set<SkillName>;

front_end/models/ai_assistance/AiAgent2.js

Lines changed: 47 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front_end/models/ai_assistance/AiAgent2.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)