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.0.1.dev0.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.0.1.dev0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file personal_assistant_agent-0.0.1.dev0.tar.gz.

File metadata

File hashes

Hashes for personal_assistant_agent-0.0.1.dev0.tar.gz
Algorithm Hash digest
SHA256 6167bf0c4177984c071860dbe1a63be0d700a1fc34cf35c99ef5b2a4b74419a1
MD5 228891db72d44646e2c9b22a91ac3cb3
BLAKE2b-256 e1ed1b354081c8386a1ed5c1dea7cf18adc8be7985ef707d15413e3ebf686956

See more details on using hashes here.

File details

Details for the file personal_assistant_agent-0.0.1.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for personal_assistant_agent-0.0.1.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f80d7e68cb079042c42b253fead9d40474ab86f977fed265304fbf13f23e5a1
MD5 6d48d4c67352c103475e93b86eb792de
BLAKE2b-256 238f595c8c74dc8bd3d3628504a675034def25b25482dc2d009bbdb25f350127

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