Skip to main content

Reusable LangChain-based agent package extracted from PersonalAssistant

Project description

Personal Assistant Agent

Standalone Python project for the reusable agent layer extracted from PersonalAssistant.

Included

  • personal_assistant_agent.agent.Agent
  • personal_assistant_agent.agent.AgentConfig
  • personal_assistant_agent.agent.AzureOpenAIModelConfig
  • personal_assistant_agent.api.create_app() for the FastAPI chat API wrapper

Install

pip install -e .

Run the API locally

uvicorn personal_assistant_agent.api:app --reload --port 8000

Minimal usage

from langchain_core.messages import HumanMessage
from personal_assistant_agent.agent import Agent, AgentConfig
from personal_assistant_agent.enums import LLM_PROVIDER

config = AgentConfig(
    nickname="assistant",
    host="http://127.0.0.1:1234",
    model="google/gemma-3-4b",
    temperature=0.2,
    provider=LLM_PROVIDER.LMSTUDIO,
)

agent = Agent(config)
response = agent.invoke(HumanMessage(content="Hello"))
print(response.content)

Test

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

personal_assistant_agent-0.1.0.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

personal_assistant_agent-0.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file personal_assistant_agent-0.1.0.tar.gz.

File metadata

  • Download URL: personal_assistant_agent-0.1.0.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for personal_assistant_agent-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebac8397cfdca8a2a587160b80604932f3a12863102cfacf26ddc3e8027ad235
MD5 8c871b2ce4e56cf42c0b4fa5c3bc2476
BLAKE2b-256 ff0e0ba5e31917c18089408f32487783c5ed972aafa20956297659a979af8290

See more details on using hashes here.

File details

Details for the file personal_assistant_agent-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for personal_assistant_agent-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2efaffbffabce6a8b137269addc0c66e64de1fdc9d2c02b09ffae45213da38
MD5 142592e00639ee1386e5e66df32026b5
BLAKE2b-256 314bfdbdbb7c331a300ae4d7bd554d540b818276aa8eee308e82770b88391bc2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page