llama-stack/llama_stack/distribution
Dinesh Yeduguru 8fd9bcb8cd
fix routing in library client (#776)
# What does this PR do?

Library client needs to match the impl based on both the path and
method. Since path is no longer static, this PR uses the inefficient way
of using regexes computed based on the annotated route path to match
against the incoming request path. The variables now also can come to
the impl from both path or the body, which is also handled cleanly by
finding all the regex matches.



## Test Plan


LLAMA_STACK_CONFIG="/Users/dineshyv/.llama/distributions/llamastack-together/together-run.yaml"
pytest -v tests/client-sdk/agents/test_agents.py
2025-01-15 15:59:45 -08:00
..
routers More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
server More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
store Fix broken tests in test_registry (#707) 2025-01-14 14:33:15 -08:00
ui Convert SamplingParams.strategy to a union (#767) 2025-01-15 05:38:51 -08:00
utils [CICD] Github workflow for publishing Docker images (#764) 2025-01-15 09:01:33 -08:00
__init__.py API Updates (#73) 2024-09-17 19:51:35 -07:00
build.py [CICD] Github workflow for publishing Docker images (#764) 2025-01-15 09:01:33 -08:00
build_conda_env.sh added support of PYPI_VERSION in stack build (#762) 2025-01-14 13:45:42 -08:00
build_container.sh [CICD] Github workflow for publishing Docker images (#764) 2025-01-15 09:01:33 -08:00
build_venv.sh Miscellaneous fixes around telemetry, library client and run yaml autogen 2024-12-08 20:40:22 -08:00
client.py use API version in "remote" stack client 2024-11-19 15:59:47 -08:00
common.sh API Updates (#73) 2024-09-17 19:51:35 -07:00
configure.py [remove import *] clean up import *'s (#689) 2024-12-27 15:45:44 -08:00
configure_container.sh docker: Check for selinux before using --security-opt (#167) 2024-10-02 10:37:41 -07:00
datatypes.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
distribution.py Tools API with brave and MCP providers (#639) 2024-12-19 21:25:17 -08:00
inspect.py add --version to llama stack CLI & /version endpoint (#732) 2025-01-08 16:30:06 -08:00
library_client.py fix routing in library client (#776) 2025-01-15 15:59:45 -08:00
request_headers.py Add X-LlamaStack-Client-Version, rename ProviderData -> Provider-Data (#735) 2025-01-09 11:51:36 -08:00
resolver.py agents to use tools api (#673) 2025-01-08 19:01:00 -08:00
stack.py More idiomatic REST API (#765) 2025-01-15 13:20:09 -08:00
start_conda_env.sh Move to use argparse, fix issues with multiple --env cmdline options 2024-11-18 16:31:59 -08:00
start_container.sh rename LLAMASTACK_PORT to LLAMA_STACK_PORT for consistency with other env vars (#744) 2025-01-10 11:09:49 -08:00