Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Jun 12, 2024
1 parent 1f2e73c commit 2a22df4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,6 @@ export function createAgent<

const input = getInput?.(observation);

console.log('input', input);

if (input) {
await agentDecide(agent, {
machine: actorRef.src as AnyStateMachine,
Expand Down
2 changes: 0 additions & 2 deletions src/decision.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { GenerateTextResult } from 'ai';
const mockToolDecision: AIAdapter['generateText'] = async (arg) => {
const keys = Object.keys(arg.tools!);

console.log(keys);

if (keys.length > 1) {
throw new Error('Expected only 1 choice');
}
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export type Agent<TEvents extends EventObject> = ActorRefFrom<

/**
* Inspects state machine actor transitions and automatically observes
* (state, event, nextState) tuples.
* (prevState, event, state) tuples.
*/
interact: <TActor extends AnyActorRef>(
actorRef: TActor,
Expand Down

0 comments on commit 2a22df4

Please sign in to comment.