Try a job

A personal assistant

The same agent can hold instructions, memory, and a tool. This is the worked example. The other jobs are shorter versions of ideas you have already used.

Example

from praisonai import Agent

def today_word() -> str:
    """Return the practice word of the day."""
    return "agent"

agent = Agent(
    name="Assistant",
    instructions="You are a personal assistant. Use today_word when asked for the word of the day.",
    memory=True,
    tools=[today_word],
)
print(agent.start("Remember that I study in the morning."))
print(today_word())

Try it Yourself

Example explained

  • memory — Keeps what you told the agent.
  • tools — A function the agent may call.

More jobs

Reference: documentation