symfonic.agent.cli.main¶
main ¶
Symfonic agent CLI.
Commands
chat -- Run a single query against the agent. migrate -- Placeholder for future HMS data migration.
Usage
python -m symfonic.agent.cli.main chat "Hello" --tenant-id t1 symfonic chat "Hello" --tenant-id t1 symfonic migrate old://db new://db
chat ¶
chat(
query: Annotated[
str, Argument(help="Query to send to the agent.")
],
tenant_id: Annotated[
str,
Option(
"--tenant-id",
help="Tenant identifier (required).",
),
],
dsn: Annotated[
str | None,
Option(
"--dsn",
help="Postgres DSN for persistent memory.",
),
] = None,
model: Annotated[
str,
Option(
"--model",
help="Model provider name (default: mock).",
),
] = "mock",
enable_hms: Annotated[
bool,
Option(
"--enable-hms",
help="Enable HMS-aware system prompt.",
),
] = False,
domain: Annotated[
str,
Option(
"--domain",
help="Domain template name. Use 'default' for generic agent. Custom domains should be injected programmatically.",
),
] = "default",
) -> None
Run a single query against the Symfonic agent.
Source code in src/symfonic/agent/cli/main.py
examples_add ¶
examples_add(
name: Annotated[
str,
Argument(
help="Example to copy (see 'symfonic examples list')."
),
],
dest: Annotated[
Path,
Option(
"--dir",
"-d",
help="Destination directory (default: cwd).",
),
] = Path("."),
force: Annotated[
bool,
Option(
"--force",
help="Overwrite an existing target directory.",
),
] = False,
) -> None
Copy a curated example into <dir>/<name>/ and print how to run it.
Source code in src/symfonic/agent/cli/main.py
examples_list ¶
List the curated examples available to copy.
Source code in src/symfonic/agent/cli/main.py
guide ¶
Print the agent quick reference (decision tree, imports, footguns).
The reference (AGENTS.md) ships inside the wheel, so this works offline
with no repo checkout -- the canonical entry point for an agent or person
figuring out how to build with symfonic-core from an installed package.
Source code in src/symfonic/agent/cli/main.py
init ¶
init(
project_name: Annotated[
str | None,
Argument(
help="Project name (directory-safe slug). Not required with --list-components or --interactive / -i."
),
] = None,
components: Annotated[
str,
Option(
"--components",
help="Comma-separated list of components to include. Example: --components fastapi,auth,webapp. Default: all components.",
),
] = _DEFAULT_COMPONENTS,
list_components: Annotated[
bool,
Option(
"--list-components/--no-list-components",
help="Print available components and exit.",
show_default=False,
),
] = False,
llm_provider: Annotated[
str,
Option(
"--llm-provider",
help="Default LLM provider: anthropic, openai, deepseek, kimi, google, ollama, aws, openrouter.",
),
] = "anthropic",
output_dir: Annotated[
Path,
Option(
"--output-dir",
help="Parent directory under which <project_name> will be created.",
),
] = Path("."),
interactive: Annotated[
bool,
Option(
"--interactive",
"-i",
help="Run interactive scaffolding prompts.",
show_default=False,
),
] = False,
force: Annotated[
bool,
Option(
"--force",
"-f",
help="Force scaffolding even if the target directory already exists.",
show_default=False,
),
] = False,
) -> None
Scaffold a new symfonic-powered project.
Pass --list-components to print the available component names and exit.
Source code in src/symfonic/agent/cli/main.py
181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | |
migrate ¶
migrate(
source_uri: Annotated[
str, Argument(help="Source data URI.")
],
target_uri: Annotated[
str, Argument(help="Target data URI.")
],
) -> None
Migrate HMS data between storage backends (stub).