Skip to content

Commit

Permalink
feat(plugin-story): migrate generateObjectDeprecated to generateObject
Browse files Browse the repository at this point in the history
  • Loading branch information
9547 committed Jan 2, 2025
1 parent 0edc90b commit 9c81aaf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-story/src/actions/attachTerms.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
ModelClass,
IAgentRuntime,
Expand Down Expand Up @@ -98,7 +98,7 @@ export const attachTermsAction = {
template: attachTermsTemplate,
});

const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: attachTermsContext,
modelClass: ModelClass.SMALL,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-story/src/actions/getAvailableLicenses.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
ModelClass,
IAgentRuntime,
Expand Down Expand Up @@ -114,7 +114,7 @@ export const getAvailableLicensesAction = {
: await runtime.updateRecentMessageState(state);

// Generate parameters from context
const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: composeContext({
state,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-story/src/actions/getIPDetails.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
ModelClass,
IAgentRuntime,
Expand Down Expand Up @@ -81,7 +81,7 @@ export const getIPDetailsAction = {
: await runtime.updateRecentMessageState(state);

// Generate content using template
const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: composeContext({ state, template: getIPDetailsTemplate }),
modelClass: ModelClass.SMALL,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-story/src/actions/licenseIP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
ModelClass,
IAgentRuntime,
Expand Down Expand Up @@ -69,7 +69,7 @@ export const licenseIPAction = {
template: licenseIPTemplate,
});

const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: licenseIPContext,
modelClass: ModelClass.SMALL,
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-story/src/actions/registerIP.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
composeContext,
elizaLogger,
generateObjectDeprecated,
generateObject,
HandlerCallback,
ModelClass,
IAgentRuntime,
Expand Down Expand Up @@ -96,7 +96,7 @@ export const registerIPAction = {
template: registerIPTemplate,
});

const content = await generateObjectDeprecated({
const content = await generateObject({
runtime,
context: registerIPContext,
modelClass: ModelClass.SMALL,
Expand Down

0 comments on commit 9c81aaf

Please sign in to comment.