Skip to content

Conversation

eranco74
Copy link

  • Add extra_headers parameter to ReActAgent.init method
  • Pass extra_headers to parent Agent class

What does this PR do?

This is a follow-up for: add client-side utility for getting OAuth tokens simply #230
This PR now enables extra_headers in the ReActAgent

@eranco74
Copy link
Author

/cc @ashwinb

stainless-app bot and others added 25 commits June 27, 2025 04:19
…hes--main--changes--next

release: 0.1.0-alpha.2
These are the changes we had made on top of whatever Stainless
generates. We are going to get them into this repository now so (a)
future updates can just be simple PRs from Stainless and (b) we can
directly publish from the repository.
Automated Release PR
---


## 0.1.0-alpha.3 (2025-06-27)

Full Changelog:
[v0.1.0-alpha.2...v0.1.0-alpha.3](llamastack/llama-stack-client-python@v0.1.0-alpha.2...v0.1.0-alpha.3)

### Features

* **api:** update via SDK Studio
([e87f225](llamastack@e87f225))
* make custom code changes
([llamastack#3](llamastack#3))
([83fa371](llamastack@83fa371))

---
This pull request is managed by Stainless's [GitHub
App](https://github.com/apps/stainless-app).

The [semver version
number](https://semver.org/#semantic-versioning-specification-semver) is
based on included [commit
messages](https://www.conventionalcommits.org/en/v1.0.0/).
Alternatively, you can manually set the version number in the title of
this pull request.

For a better experience, it is recommended to use either rebase-merge or
squash-merge when merging this pull request.

🔗 Stainless [website](https://www.stainlessapi.com)
📚 Read the [docs](https://app.stainlessapi.com/docs)
🙋 [Reach out](mailto:support@stainlessapi.com) for help or questions

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
…tack#5)

Stainless by default uses Rye. We need to make it use UV which is more
modern (and a significantly upgraded version of Rye.)

I have completely nuked existing CI workflows installed by Stainless and
instead added our own pre-commit. We will gradually make this more
robust by running a lot more tests before landing the client SDK PRs.
Automated Release PR
---


## 0.1.0-alpha.4 (2025-06-27)

Full Changelog:
[v0.1.0-alpha.3...v0.1.0-alpha.4](llamastack/llama-stack-client-python@v0.1.0-alpha.3...v0.1.0-alpha.4)

### Features

* **api:** update via SDK Studio
([4333cb0](llamastack@4333cb0))


### Bug Fixes

* **ci:** update pyproject.toml to use uv and remove broken CI
([llamastack#5](llamastack#5))
([7bc925c](llamastack@7bc925c))


### Chores

* **internal:** version bump
([867ea24](llamastack@867ea24))

---
This pull request is managed by Stainless's [GitHub
App](https://github.com/apps/stainless-app).

The [semver version
number](https://semver.org/#semantic-versioning-specification-semver) is
based on included [commit
messages](https://www.conventionalcommits.org/en/v1.0.0/).
Alternatively, you can manually set the version number in the title of
this pull request.

For a better experience, it is recommended to use either rebase-merge or
squash-merge when merging this pull request.

🔗 Stainless [website](https://www.stainlessapi.com)
📚 Read the [docs](https://app.stainlessapi.com/docs)
🙋 [Reach out](mailto:support@stainlessapi.com) for help or questions

---------

Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
…ck#8)

Supersedes
llamastack#251

Signed-off-by: Nathan Weinberg <nweinber@redhat.com>
…amastack#11)

# What does this PR do?
Added the ability to specify the model type when registering models. 
Also fixed a bug with passing metadata which would result in the
following error:
```
Error Type: BadRequestError                                                                                                                                     │
│ Details: Error code: 400 - {'error': {'detail': {'errors': [{'loc': ['body', 'metadata'], 'msg': 'Input should be a valid dictionary', 'type': 'dict_type'}]}}}
```

Closes: llamastack#215
## Test Plan
Run the following commands
```
# Note a Llama Stack Server must be running
# Create a venv
uv sync --python 3.12
# Install the LSC with the new code changes
uv pip install -e .
# List the available models
llama-stack-client models list
# Register the granite-embedding-30m embedding model NOTE must have sentence-transformers as an inference provider
llama-stack-client models register granite-embedding-30m --provider-id "sentence-transformers" --provider-model-id ibm-granite/granite-embedding-30m-english --metadata '{"embedding_dimension": 384}' --model-type embedding
# Verify the embedding model added are present
llama-stack-client models list
```
Fixes broken links to guide to setup a llama-stack server and to the API
reference

Signed-off-by: Jorge Garcia Oncins <jgarciao@redhat.com>
This is a followup for:
add client-side utility for getting OAuth tokens simply llamastack#230

- Add extra_headers parameter to ReActAgent.__init__ method
- Pass extra_headers to parent Agent class
@eranco74 eranco74 closed this Jul 20, 2025
@eranco74 eranco74 force-pushed the ReActAgentHeaders branch from 4a3852c to 64b9f3d Compare July 20, 2025 07:39
@eranco74
Copy link
Author

Closed in favor of #14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants