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.Agentpersonal_assistant_agent.agent.AgentConfigpersonal_assistant_agent.agent.AzureOpenAIModelConfigpersonal_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file personal_assistant_agent-0.0.1.dev0.tar.gz.
File metadata
- Download URL: personal_assistant_agent-0.0.1.dev0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6167bf0c4177984c071860dbe1a63be0d700a1fc34cf35c99ef5b2a4b74419a1
|
|
| MD5 |
228891db72d44646e2c9b22a91ac3cb3
|
|
| BLAKE2b-256 |
e1ed1b354081c8386a1ed5c1dea7cf18adc8be7985ef707d15413e3ebf686956
|
File details
Details for the file personal_assistant_agent-0.0.1.dev0-py3-none-any.whl.
File metadata
- Download URL: personal_assistant_agent-0.0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f80d7e68cb079042c42b253fead9d40474ab86f977fed265304fbf13f23e5a1
|
|
| MD5 |
6d48d4c67352c103475e93b86eb792de
|
|
| BLAKE2b-256 |
238f595c8c74dc8bd3d3628504a675034def25b25482dc2d009bbdb25f350127
|