Skip to content

Commit d31eb76

Browse files
authored
[JS] chore: Remove incomplete functions augmentation (#951)
## Linked issues closes: #948 ## Details Remove incomplete `functions` augmentation
1 parent a92a5dc commit d31eb76

File tree

4 files changed

+2
-76
lines changed

4 files changed

+2
-76
lines changed

js/packages/teams-ai/src/augmentations/FunctionsAugmentation.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

js/packages/teams-ai/src/augmentations/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@
99
export * from "./ActionAugmentationSection";
1010
export * from "./Augmentation";
1111
export * from "./DefaultAugmentation";
12-
export * from "./FunctionsAugmentation";
1312
export * from "./MonologueAugmentation";
1413
export * from "./SequenceAugmentation";

js/packages/teams-ai/src/prompts/PromptManager.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { DataSource } from "../dataSources";
1818
import { PromptSection } from "./PromptSection";
1919
import { Memory } from "../MemoryFork";
2020
import { DataSourceSection } from "./DataSourceSection";
21-
import { FunctionsAugmentation, MonologueAugmentation, SequenceAugmentation } from "../augmentations";
21+
import { MonologueAugmentation, SequenceAugmentation } from "../augmentations";
2222
import { ConversationHistory } from "./ConversationHistory";
2323
import { UserMessage } from "./UserMessage";
2424
import { GroupSection } from "./GroupSection";
@@ -409,9 +409,6 @@ export class PromptManager implements PromptFunctions {
409409
case 'none':
410410
// No augmentation needed
411411
break;
412-
case 'functions':
413-
template.augmentation = new FunctionsAugmentation(template.actions ?? []);
414-
break;
415412
case 'monologue':
416413
template.augmentation = new MonologueAugmentation(template.actions ?? []);
417414
break;

js/packages/teams-ai/src/prompts/PromptTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export interface AugmentationConfig {
172172
/**
173173
* The type of augmentation to use.
174174
*/
175-
augmentation_type: 'none' | 'functions' | 'sequence' | 'monologue';
175+
augmentation_type: 'none' | 'sequence' | 'monologue';
176176

177177
/**
178178
* Optional. List of named data sources to augment the prompt with.

0 commit comments

Comments
 (0)