Skip to content

Core Module API

μ½”μ–΄ λͺ¨λ“ˆ API

The salmalm.core package contains the central engine and session management.

salmalm.core νŒ¨ν‚€μ§€λŠ” 쀑앙 μ—”μ§„κ³Ό μ„Έμ…˜ 관리λ₯Ό ν¬ν•¨ν•©λ‹ˆλ‹€.

salmalm.core.core

Main SalmAlm class β€” the central orchestrator that initializes all subsystems.

메인 SalmAlm 클래슀 β€” λͺ¨λ“  μ„œλΈŒμ‹œμŠ€ν…œμ„ μ΄ˆκΈ°ν™”ν•˜λŠ” 쀑앙 μ˜€μΌ€μŠ€νŠΈλ ˆμ΄ν„°.

salmalm.core.engine

LLM orchestration engine handling message routing, tool calls, and response streaming.

λ©”μ‹œμ§€ λΌμš°νŒ…, 도ꡬ 호좜, 응닡 μŠ€νŠΈλ¦¬λ°μ„ μ²˜λ¦¬ν•˜λŠ” LLM μ˜€μΌ€μŠ€νŠΈλ ˆμ΄μ…˜ μ—”μ§„.

salmalm.core.llm

LLM provider abstraction β€” supports Anthropic, OpenAI, Google, xAI, OpenRouter, Ollama.

LLM ν”„λ‘œλ°”μ΄λ” 좔상화 β€” Anthropic, OpenAI, Google, xAI, OpenRouter, Ollama 지원.

salmalm.core.llm_loop

Conversation loop handler β€” manages multi-turn interactions with tool use.

λŒ€ν™” 루프 ν•Έλ“€λŸ¬ β€” 도ꡬ μ‚¬μš©μ„ ν¬ν•¨ν•œ λ©€ν‹°ν„΄ μΈν„°λž™μ…˜ 관리.

salmalm.core.llm_task

Async LLM task runner for background processing.

λ°±κ·ΈλΌμš΄λ“œ 처리λ₯Ό μœ„ν•œ 비동기 LLM νƒœμŠ€ν¬ λŸ¬λ„ˆ.

salmalm.core.prompt

System prompt builder β€” constructs context-aware prompts with tool descriptions.

μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ λΉŒλ” β€” 도ꡬ μ„€λͺ…을 ν¬ν•¨ν•œ μ»¨ν…μŠ€νŠΈ 인식 ν”„λ‘¬ν”„νŠΈ 생성.

salmalm.core.session_manager

Session lifecycle management β€” create, switch, delete, branch, rollback.

μ„Έμ…˜ 라이프사이클 관리 β€” 생성, μ „ν™˜, μ‚­μ œ, λΆ„κΈ°, λ‘€λ°±.

salmalm.core.memory

Memory management for persistent storage across sessions.

μ„Έμ…˜ κ°„ μ˜μ† μ €μž₯을 μœ„ν•œ λ©”λͺ¨λ¦¬ 관리.

salmalm.core.health

Health check endpoints for monitoring and SLA.

λͺ¨λ‹ˆν„°λ§ 및 SLAλ₯Ό μœ„ν•œ μƒνƒœ 점검 μ—”λ“œν¬μΈνŠΈ.

salmalm.core.shutdown

Graceful shutdown handler β€” saves state, closes connections, flushes logs.

μ•ˆμ „ν•œ μ’…λ£Œ ν•Έλ“€λŸ¬ β€” μƒνƒœ μ €μž₯, μ—°κ²° μ’…λ£Œ, 둜그 ν”ŒλŸ¬μ‹œ.

salmalm.core.export

Session export in JSON and Markdown formats.

JSON 및 Markdown ν˜•μ‹μ˜ μ„Έμ…˜ 내보내기.


Auto-generated details / μžλ™ 생성 상세

Run python docs/gen_api.py to regenerate detailed class/function docs from docstrings. python docs/gen_api.pyλ₯Ό μ‹€ν–‰ν•˜λ©΄ docstringμ—μ„œ μƒμ„Έν•œ 클래슀/ν•¨μˆ˜ λ¬Έμ„œλ₯Ό μž¬μƒμ„±ν•©λ‹ˆλ‹€.